+ entity.getSimpleTypeName()
+ "' illegally returned null\");");
bodyBuilder.indentRemove();
bodyBuilder.appendFormalLine("}");
bodyBuilder.appendFormalLine("if (!" + dataField + ".isEmpty()) {");
bodyBuilder.indent();
bodyBuilder.appendFormalLine("return;");
bodyBuilder.indentRemove();
bodyBuilder.appendFormalLine("}");
bodyBuilder.appendFormalLine("");
bodyBuilder.appendFormalLine(dataField + " = new ArrayList<"