code: public synchronized void setEndpoint(URI endpoint) {
          checkUpdatable();
          int port = endpoint.getPort();
          if (port==80||port==443) {
              if (MwsUtl.usesStandardPort(endpoint)) {
                  try {
                      //some versions of apache http client cause signature errors when
                      //standard port is explicitly used, so remove that case.
                      endpoint = new URI(endpoint.getScheme(), endpoint.getHost(), 
                              endpoint.getPath(), endpoint.getFragment());
                  } catch (URISyntaxException e) {
                      throw new IllegalArgumentException(e);
                  }
              }
          }
          this.endpoint = endpoint;
      }
docs: Sets service endpoint property.
  
  @param endpoint
  The service end point URI.