// if this is a lookup, then ignore
if (lookups.contains(cDef.getPropertyName())) {
continue;
}
if (this.objectFactory.isPropertyDefinition(cDef.getPropertyName())) {
final PropertyDefinition pd = this.objectFactory.getPropertyDefinitionByPropertyName(
cDef.getPropertyName()
);
final XmlReadHandler handler = (XmlReadHandler) this.createdHandler.get(
pd.getElementName()
);
if (handler != null) {
this.objectFactory.setProperty(pd.getPropertyName(), handler.getObject());
}
}
// hoping that the attribute is set ..
}
this.object = this.objectFactory.createObject();
Object oldValue = null;
if (this.objectFactory.getRegisterName() != null) {
oldValue = rootHandler.getHelperObject(this.objectFactory.getRegisterName());
rootHandler.setHelperObject(this.objectFactory.getRegisterName(), this.object);
}
final PropertyDefinition[] propertyDefs = this.objectFactory.getPropertyDefinitions();
for (int i = 0; i < propertyDefs.length; i++) {
final PropertyDefinition pdef = propertyDefs[i];
final XmlReadHandler handler = (XmlReadHandler) this.createdHandler.get(
pdef.getElementName()
);
if (handler == null) {
continue;
}
this.objectFactory.setProperty(pdef.getPropertyName(), handler.getObject());
}
this.objectFactory.writeObjectProperties(this.object);
if (this.objectFactory.getRegisterName() != null) {