+ TAB + "create(" + recordVarParamName + ");\n"
+ "} else {\n"
+ TAB + "update(" + recordVarParamName + ");\n"
+ "}\n";
JavaMethod saveMethod = myClass.addMethod(Access.PUBLIC, "void", "save", recordClassOnlyParam, saveContent);
<BUG>addSpringSupport(saveMethod);
</BUG>
List<JavaVariable> findParams = new ArrayList<>();
findParams.add(new JavaVariable("Object", "pk"));
myClass.addMethod(Access.PUBLIC, recordClassName, "find", findParams, "return (" + recordClassName + ") entityManager.find(" + recordClassName + ".class, pk);");

+ TAB + "create(" + recordVarParamName + ");\n"
+ "} else {\n"
+ TAB + "update(" + recordVarParamName + ");\n"
+ "}\n";
JavaMethod saveMethod = myClass.addMethod(Access.PUBLIC, "void", "save", recordClassOnlyParam, saveContent);
addJavaEESupport(saveMethod);
List<JavaVariable> findParams = new ArrayList<>();
findParams.add(new JavaVariable("Object", "pk"));
myClass.addMethod(Access.PUBLIC, recordClassName, "find", findParams, "return (" + recordClassName + ") entityManager.find(" + recordClassName + ".class, pk);");
