This method is obsolete. It is no longer possible to change the mesh of a service implementing this interface. The choice of the mesh is made when creating the service via ServiceBuilder by passing the desired mesh as an argument.
Do not retrieve the list of entities directly. It is preferable to use iterators or the method fillLocalIds() if you want to retrieve the list of localIds().