add SpaceReference support to getParentEntityRef