public void setDefaultRelationshipValue(EORelationship rel, String defaultValue) {
String name = rel.name();
defaultLog.debug("Adding: " + name + "-" + defaultValue);
NSArray attrs = rel.destinationAttributes();
if(!rel.isFlattened() && attrs != null && attrs.count() == 1) {
EOAttribute relAttr = (EOAttribute)attrs.objectAtIndex(0);
if(defaultValue != null) {
RelationshipDefault d = new RelationshipDefault(name, defaultValue, relAttr.adaptorValueType(), rel.destinationEntity().name());
_initialDefaultValues.setObjectForKey(d, name);
}
}