refactored resolve url mapping from the Service registry to the service endpoint