commandList.add(new DefaultResponseMessageReader());
commandList.add(new OperationDeprecatedReader());
commandList.addAll(customAnnotationReaders);
Integer currentCount = 0;
for (RequestMethod httpRequestMethod : supportedMethods) {
CommandExecutor<Map<String, Object>, RequestMappingContext> commandExecutor = new CommandExecutor();
RequestMappingContext operationRequestMappingContext = new RequestMappingContext(requestMappingInfo,
handlerMethod);
operationRequestMappingContext.put("currentCount", currentCount);
operationRequestMappingContext.put("currentHttpMethod", httpRequestMethod);
operationRequestMappingContext.put("swaggerGlobalSettings", swaggerGlobalSettings);
operationRequestMappingContext.put("authorizationContext", authorizationContext);
operationRequestMappingContext.put("requestMappingPattern", requestMappingPattern);
commandExecutor.execute(commandList, operationRequestMappingContext);
Map<String, Object> operationResultMap = operationRequestMappingContext.getResult();
currentCount = (Integer) operationResultMap.get("currentCount");
List<String> producesMediaTypes = (List<String>) operationResultMap.get("produces");