Same comment as on the getEndpoints() method about the relative expensive nature of this method.