}
for (Enumeration mappingsEnum = getMappings().elements(); mappingsEnum.hasMoreElements();) {
DatabaseMapping mapping = (DatabaseMapping) mappingsEnum.nextElement();
validateMappingType(mapping);
mapping.initialize(session);
if(mapping.isObjectReferenceMapping()) {
this.hasReferenceMappings = true;
}
if(mapping instanceof XMLChoiceObjectMapping) {
XMLChoiceObjectMapping choiceMapping = ((XMLChoiceObjectMapping)mapping);