public NSArray referenceEOs() {
if (_referenceEOs == null) {
String relationshipName = (String) d2wContext().valueForKey("referenceRelationshipForBackgroupColor");
if (relationshipName != null) {
EOEntity entity = EOModelGroup.defaultGroup().entityNamed(entityName());
EORelationship relationship = entity.relationshipNamed(relationshipName);
_referenceEOs = EOUtilities.objectsForEntityNamed(EOSharedEditingContext.defaultSharedEditingContext(), relationship.destinationEntity().name());
_referenceEOs = ERXArrayUtilities.sortedArraySortedWithKey(_referenceEOs, "ordering", EOSortOrdering.CompareAscending);
}
}
return _referenceEOs;