if (entityBeanInfo.cmpVersion != 2) {
Cmp1Generator cmp1Generator = new Cmp1Generator(cmpImplClass, beanClass);
if ("java.lang.Object".equals(entityBeanInfo.primKeyClass)) {
cmp1Generator.setUnknownPk(true);
}
bytes = cmp1Generator.generate();
} else {
// generte the implementation class
Cmp2Generator cmp2Generator = new Cmp2Generator(cmpImplClass,
beanClass,