}
});
if (count == 0) {
// Let's generate it then
PrimaryKeyClassPlugin pkPlugin = EjbRuntime.getPrimaryKeyClassPlugin();
JavaParameter javaParameter = new JavaParameter(new Type(pkPlugin.pkClass(javaClass)), "pk");
JavaMethod finderMethod = new JavaMethod();
finderMethod.setName("findByPrimaryKey");
finderMethod.setParameters(new JavaParameter[] {javaParameter});
// Let's add it finally