CSPACE-6333: Add secondary sort on uuid when querying for refobjs and relations containing refnames. Also refactor RelationUtils.findRelationsWithRefName to use RepositoryJavaClientImpl.findDocs.
CSPACE-6333: Move repoSession.save call outside the loop, so it doesn't affect the search results each time through the loop.
Merge pull request #144 from ray-lee/CSPACE-6333

CSPACE-6333: Reviewed by Aron and Richard. All looks good.