code: @Deprecated
      private boolean hasServiceEndpoint(String endpoint) {
          for(Service s : services.values()) {
              if (s.getEndpoints().containsKey(endpoint)) {
                  return true;
              }
          }
          return false;
      }
docs: returns true if any of the services in the partition has a custom endpoint
  like s3 having s3-external-1.
  TODO Remove this support as part of next major version.
  @Deprecated use the {@link com.amazonaws.AmazonWebServiceClient#setEndpoint(String)} method
  for custom endpoints.