should be add a private method to get rid of the duplicate code we also have in ``getEntitiesByIds()``. such a method might also add some more error handling for cases where for example ``execute()`` fails.