EOEntity entity=EOModelGroup.defaultGroup().entityNamed(lastEO.entityName());
EOEntity entity=ERXEOAccessUtilities.entityNamed(object.editingContext(), lastEO.entityName());
    public static EORelationship relationshipWithObjectAndKeyPath(EOEnterpriseObject object, String keyPath) {        EOEnterpriseObject lastEO = relationshipObjectWithObjectAndKeyPath(object, keyPath);        EORelationship relationship = null;                if (lastEO!=null) {            // FIXME: Should use the model group of the object's editing context's            //		root object store coordinator            EOEntity entity=EOModelGroup.defaultGroup().entityNamed(lastEO.entityName());            String lastKey=ERXStringUtilities.lastPropertyKeyInKeyPath(keyPath);            relationship=entity.relationshipNamed(lastKey);        }        return relationship;    }