protected Map<String,RamlMimeType> extractRequestBodyFromMethod(RamlActionType apiAction,Method method,Map<String,String> parameterComments){
  if (!(doesActionTypeSupportRequestBody(apiAction)) || method.getParameterCount() == 0) {
    return Collections.emptyMap();
  }
  String comment=null;
  List<ApiParameterMetadata> apiParameters=getApiParameters(method,false,true);
  if (apiParameters.size() == 0) {
    return Collections.emptyMap();
  }
  Pair<String,RamlMimeType> schemaAndMime=extractRequestBody(method,parameterComments,comment,apiParameters);
  return Collections.singletonMap(schemaAndMime.getFirst(),schemaAndMime.getSecond());
}

protected Map < String , RamlMimeType > extractRequestBodyFromMethod ( RamlActionType apiAction , Method method , Map < String , String > parameterComments ) { if ( ! ( doesActionTypeSupportRequestBody ( apiAction ) ) || method . getParameterCount ( ) == 0 ) { return Collections . emptyMap ( ) ; } String comment = null ; List < ApiParameterMetadata > apiParameters = getApiParameters ( method , false , true ) ; if ( apiParameters . size ( ) == 0 ) { return Collections . emptyMap ( ) ; } Pair < String , RamlMimeType > schemaAndMime = extractRequestBody ( method , parameterComments , comment , apiParameters ) ; return Collections . singletonMap ( schemaAndMime . getFirst ( ) , schemaAndMime . getSecond ( ) ) ; }
extracts the tos and other parameters from a method and will convert into jsonschema for inclusion in the body todo refactor this code structure
