code: public void changeEndpoint(String endpoint) throws ConnectionEndpointArray.UnknownSchemeException {
          changeEndpoints(new Endpoints(new ConnectionEndpointArray().addEndpoint(endpoint).toArray(new ConnectionEndpoint[1]), new TrustedKey[0]));
      }
docs: Changing endpoint