public static ApiMethod processMethod(ApiService apiService,MethodDoc method,String baseURL,boolean isDataService){
  try {
    ApiMethod apiMethodDesc=new ApiMethod();
    apiMethodDesc.javaMethodName=method.name();
    apiMethodDesc.apiService=apiService;
    apiMethodDesc.isDataService=isDataService;
    addPath(method,apiMethodDesc,baseURL);
    addHttpMethod(method,apiMethodDesc);
    addDescription(method,apiMethodDesc);
    addBriefDescription(method,apiMethodDesc);
    addResponseDescription(method,apiMethodDesc);
    addPrerequisites(method,apiMethodDesc);
    addSecurity(method,apiMethodDesc);
    if (isDataService) {
      addDataServiceInformation(method,apiMethodDesc);
    }
 else {
      addInputs(method,apiMethodDesc);
    }
    addOutput(method,apiMethodDesc);
    addQueryParameters(method,apiMethodDesc);
    addPathParameters(method,apiMethodDesc);
    addExamples(apiMethodDesc);
    addDeprecated(method,apiMethodDesc);
    return apiMethodDesc;
  }
 catch (  Exception e) {
    throw new RuntimeException("Error processing " + apiService.getFqJavaClassName() + "::"+ method.name(),e);
  }
}

public static ApiMethod processMethod ( ApiService apiService , MethodDoc method , String baseURL , boolean isDataService ) { try { ApiMethod apiMethodDesc = new ApiMethod ( ) ; apiMethodDesc . javaMethodName = method . name ( ) ; apiMethodDesc . apiService = apiService ; apiMethodDesc . isDataService = isDataService ; addPath ( method , apiMethodDesc , baseURL ) ; addHttpMethod ( method , apiMethodDesc ) ; addDescription ( method , apiMethodDesc ) ; addBriefDescription ( method , apiMethodDesc ) ; addResponseDescription ( method , apiMethodDesc ) ; addPrerequisites ( method , apiMethodDesc ) ; addSecurity ( method , apiMethodDesc ) ; if ( isDataService ) { addDataServiceInformation ( method , apiMethodDesc ) ; } else { addInputs ( method , apiMethodDesc ) ; } addOutput ( method , apiMethodDesc ) ; addQueryParameters ( method , apiMethodDesc ) ; addPathParameters ( method , apiMethodDesc ) ; addExamples ( apiMethodDesc ) ; addDeprecated ( method , apiMethodDesc ) ; return apiMethodDesc ; } catch ( Exception e ) { throw new RuntimeException ( "Error processing " + apiService . getFqJavaClassName ( ) + "::" + method . name ( ) , e ) ; } }
create an apimethod from a standard method
