}
// if this is really to-one we need to rename the relationship
if (!toMany) {
Entity source = relationship.getSourceEntity();
source.removeRelationship(relationship.getName());
relationship.setName(DbLoader.uniqueRelName(source, namingStrategy
.createDbRelationshipName(key, false)));
source.addRelationship(relationship);
}