private void initialize() {
if (mappingWrapper.getConfig() != null) {
List relationships = mappingWrapper.getConfig().getRelationship();
Iterator i = relationships.iterator();
while (i.hasNext()) {
Relationship r = (Relationship) i.next();
if (this.logger.isDebugEnabled()) {
this.logger.debug("Initializing relationship: " + r.getName());
this.logger.debug("r.getForeignKeyTable():"+r.getForeignKeyTable());
this.logger.debug("getTypeName():"+getTypeName());
}
if (r.getForeignKeyTable().equals(getTypeName())) {
List pairs = r.getKeyPair();
Iterator iter = pairs.iterator();
while (iter.hasNext()) {
KeyPair pair = (KeyPair) iter.next();
keyMappings.put(pair.getForeignKeyColumn(), r);
if (this.logger.isDebugEnabled()) {