/** * Get the method parser that is associated with the provided swaggerMethod. The method parser * can be used to get details about the Swagger REST API call. * @param swaggerMethod The method to generate a parser for. * @return The SwaggerMethodParser associated with the provided swaggerMethod. */ public SwaggerMethodParser methodParser(Method swaggerMethod) { SwaggerMethodParser result = methodParsers.get(swaggerMethod); if (result == null) { result = new SwaggerMethodParser(swaggerMethod, serializer, host()); methodParsers.put(swaggerMethod, result); } return result; }