clazz.setEntityName(entity.name());
        public EOEnterpriseObjectClazz classFromEntity(EOEntity entity) {            EOEnterpriseObjectClazz clazz = null;            if(entity == null) {                clazz = newInstanceOfDefaultClazz();            } else {                try {                    String className = entity.className();                    if(classNameIsGenericRecord(className)) {                        clazz = newInstanceOfGenericRecordClazz();                    } else {                    	String clazzName = clazzNameForEntity(entity);                        clazz = (EOEnterpriseObjectClazz)Class.forName(clazzName).newInstance();                    }                } catch (InstantiationException ex) {                } catch (ClassNotFoundException ex) {                } catch (IllegalAccessException ex) {                }            }            if(clazz == null) return classFromEntity(entity.parentEntity());            clazz.setEntityName(entity.name());            return clazz;        }