Fix #4 - HttpOAuth2Connector is unable to identify the endpointId for root-path requests
  - Improvements to logic inside getEndpointId()
  - Added javadoc to explain the purpose of this private method