Program: 59409
Project: 59409
Buggy source:
/** 
 * Gets <code>populateDatatablesConfig</code> method <br> This method insert on Model all configuration properties which will need ".tagx" to render final page. <br> This properties are: <ul> <li><em>datatablesHasBatchSupport</em> informs if there is batch entity operations support on controller (used for multy-row delete operation)</li> <li><em>datatablesUseAjax</em> informs datatbles data mode (<em>true</em> : AJAX <em>false</em> DOM)</li> <li><em>datatablesNotStandardMode</em> informs render mode (<em>true</em> : standar datatable view <em>false</em> single-item-page, one-cell-per-item, render-jspx datatable mode)</li> </ul>
 * @return
 */
private MethodMetadata getPopulateDatatablesConfig(){
  List<AnnotatedJavaType> parameterTypes=AnnotatedJavaType.convertFromJavaTypes(MODEL);
  final MethodMetadata method=methodExists(POPULATE_DATATABLES_CONFIG,parameterTypes);
  if (method != null) {
    return method;
  }
  List<AnnotationMetadataBuilder> annotations=new ArrayList<AnnotationMetadataBuilder>();
  AnnotationMetadataBuilder annotation=new AnnotationMetadataBuilder(MODEL_ATTRIBUTE);
  annotations.add(annotation);
  List<JavaType> throwsTypes=new ArrayList<JavaType>();
  List<JavaSymbolName> parameterNames=new ArrayList<JavaSymbolName>();
  parameterNames.add(UI_MODEL);
  InvocableMemberBodyBuilder bodyBuilder=new InvocableMemberBodyBuilder();
  bodyBuilder.appendFormalLine(String.format("String_Node_Str",hasJpaBatchSupport()));
  bodyBuilder.appendFormalLine(String.format("String_Node_Str",isAjax()));
  bodyBuilder.appendFormalLine(String.format("String_Node_Str",!isStantardMode()));
  MethodMetadataBuilder methodBuilder=new MethodMetadataBuilder(getId(),Modifier.PUBLIC,POPULATE_DATATABLES_CONFIG,JavaType.VOID_PRIMITIVE,parameterTypes,parameterNames,bodyBuilder);
  methodBuilder.setAnnotations(annotations);
  methodBuilder.setThrowsTypes(throwsTypes);
  return methodBuilder.build();
}

Fixed version (ground truth):
/** 
 * Gets <code>populateDatatablesConfig</code> method <br> This method insert on Model all configuration properties which will need ".tagx" to render final page. <br> This properties are: <ul> <li><em>datatablesHasBatchSupport</em> informs if there is batch entity operations support on controller (used for multi-row delete operation)</li> <li><em>datatablesUseAjax</em> informs datatables data mode ( <em>true</em> : AJAX <em>false</em> DOM)</li> <li><em>finderNameParam</em> sets the name of parameter that will contain the   {@code finderName} (only for AJAX mode)</li><li><em>datatablesNotStandardMode</em> informs render mode (<em>true</em> : standar datatable view <em>false</em> single-item-page, one-cell-per-item, render-jspx datatable mode)</li> </ul>
 * @return
 */
private MethodMetadata getPopulateDatatablesConfig(){
  List<AnnotatedJavaType> parameterTypes=AnnotatedJavaType.convertFromJavaTypes(MODEL);
  final MethodMetadata method=methodExists(POPULATE_DATATABLES_CONFIG,parameterTypes);
  if (method != null) {
    return method;
  }
  List<AnnotationMetadataBuilder> annotations=new ArrayList<AnnotationMetadataBuilder>();
  AnnotationMetadataBuilder annotation=new AnnotationMetadataBuilder(MODEL_ATTRIBUTE);
  annotations.add(annotation);
  List<JavaType> throwsTypes=new ArrayList<JavaType>();
  List<JavaSymbolName> parameterNames=new ArrayList<JavaSymbolName>();
  parameterNames.add(UI_MODEL);
  InvocableMemberBodyBuilder bodyBuilder=new InvocableMemberBodyBuilder();
  bodyBuilder.appendFormalLine(String.format("String_Node_Str",hasJpaBatchSupport()));
  bodyBuilder.appendFormalLine(String.format("String_Node_Str",isAjax()));
  bodyBuilder.appendFormalLine(String.format("String_Node_Str",!isStantardMode()));
  if (isAjax()) {
    bodyBuilder.appendFormalLine("String_Node_Str");
  }
  MethodMetadataBuilder methodBuilder=new MethodMetadataBuilder(getId(),Modifier.PUBLIC,POPULATE_DATATABLES_CONFIG,JavaType.VOID_PRIMITIVE,parameterTypes,parameterNames,bodyBuilder);
  methodBuilder.setAnnotations(annotations);
  methodBuilder.setThrowsTypes(throwsTypes);
  return methodBuilder.build();
}