code: public void changeEndpoint(String endpoint) throws ConnectionEndpointArray.UnknownSchemeException {
          if (endpoint != null && !endpoint.isEmpty()) {
              modules.getApiModule().changeEndpoint(endpoint);
          } else {
              modules.getApiModule().resetToDefaultEndpoints();
          }
      }
docs: Change endpoint
  
  @param endpoint endpoint to change to, null for reset to default
  @throws ConnectionEndpointArray.UnknownSchemeException