// now generate a class file using the appropriate level of CMP generator.
final byte[] bytes;
// NB: We'll need to change this test of CMP 3 is ever defined!
if (entityBeanInfo.cmpVersion != 2) {
final Cmp1Generator cmp1Generator = new Cmp1Generator(cmpImplClass, beanClass);
// A primary key class defined as Object is an unknown key. Mark it that
// way so the generator will create the automatically generated key.
if ("java.lang.Object".equals(entityBeanInfo.primKeyClass)) {
cmp1Generator.setUnknownPk(true);
}
bytes = cmp1Generator.generate();
} else {
// generate the implementation class
final Cmp2Generator cmp2Generator = new Cmp2Generator(cmpImplClass,
beanClass,