In SDN+OGM I used the following method to extend the base repository with additional functionality, specifically I want a way to find or create entities of different types (