public abstract class SwaggerResponseMessageReader implements RequestMappingReader {
@Override
public void execute(RequestMappingContext context) {
SwaggerGlobalSettings swaggerGlobalSettings = (SwaggerGlobalSettings) context.get("swaggerGlobalSettings");
RequestMethod currentHttpMethod = (RequestMethod) context.get("currentHttpMethod");
HandlerMethod handlerMethod = context.getHandlerMethod();
Collection<ResponseMessage> responseMessages = newArrayList();
responseMessages.addAll(read(swaggerGlobalSettings, currentHttpMethod, handlerMethod));
context.put("responseMessages", responseMessages);