breeze lab getEntityGraph refactored to be cleaner and easier to read