Collection embedded = getCollectionStaticProperty(cpf, EMBEDDED);
Collection transients = getCollectionStaticProperty(cpf, TRANSIENT);
Map hasManyMap = getAssociationMap(cpf);
Map mappedByMap = getMapStaticProperty(cpf, MAPPED_BY);
Map hasOneMap = getAssociationMap(cpf, HAS_ONE);
<BUG>for (PropertyDescriptor descriptor : cpf.getPropertyDescriptors()) {
if (descriptor.getPropertyType() == null || descriptor.getPropertyType() == Object.class) {
continue;</BUG>
}
<BUG>if (descriptor.getReadMethod() == null || descriptor.getWriteMethod() == null) {
continue;
}
final String propertyName = descriptor.getName();
</BUG>
if (propertyName.equals(VERSION) && !entity.isVersioned()) {

Collection embedded = getCollectionStaticProperty(cpf, EMBEDDED);
Collection transients = getCollectionStaticProperty(cpf, TRANSIENT);
Map hasManyMap = getAssociationMap(cpf);
Map mappedByMap = getMapStaticProperty(cpf, MAPPED_BY);
Map hasOneMap = getAssociationMap(cpf, HAS_ONE);
for (MetaProperty metaProperty : cpf.getMetaProperties()) {
PropertyDescriptor propertyDescriptor = propertyFactory.createPropertyDescriptor(metaProperty);
if(propertyDescriptor == null) {
