factoryMethodContet += "\n";
factoryMethodContet += "return manager;\n";
List<JavaVariable> factoryParams = new ArrayList<>();
factoryParams.add(new JavaVariable("EntityManager", "em"));
JavaMethod factoryMethod = myClass.addMethod(Access.PUBLIC, managerClassName, "get" + managerClassName, factoryParams, factoryMethodContet);
<BUG>factoryMethod.setStatic(true);
myClass.addImport("javax.persistence.EntityManager");</BUG>
JavaVariable emVar = myClass.addVariable("EntityManager", "entityManager", true);
emVar.addAnnotation("@javax.persistence.PersistenceContext");
String recordVarParamName = "record";

factoryMethodContet += "\n";
factoryMethodContet += "return manager;\n";
List<JavaVariable> factoryParams = new ArrayList<>();
factoryParams.add(new JavaVariable("EntityManager", "em"));
JavaMethod factoryMethod = myClass.addMethod(Access.PUBLIC, managerClassName, "get" + managerClassName, factoryParams, factoryMethodContet);
factoryMethod.setStatic(true);
}
myClass.addImport("javax.persistence.EntityManager");
JavaVariable emVar = myClass.addVariable("EntityManager", "entityManager", true);
emVar.addAnnotation("@javax.persistence.PersistenceContext");
String recordVarParamName = "record";
