code: protected Endpoint createEndpoint() {
          return endpointFactory.create(hostname, bucket, username, password, port, ctx);
      }
docs: Helper method to create a new endpoint.
  
  @return the endpoint to create.