Better retrieveMatchingEntitiesStub