This method name and the variable name bellow is deceives. This method does not return an endpoint URL but a key which is used to look up the endpoint URL.

As such, the method and the variable need better names.