code: protected URL getApiUrl(Object... pathArgs) throws IOException {
          String url = appendPathArgs(this.hostUrl, pathArgs);
          return (new URL(url));
      }
docs: Construct a REST URL with the specified path arguments.
  
  @param pathArgs variable list of arguments used to build the URI
  @return a REST URL with the specified path arguments
  @throws IOException if an error occurs while constructing the URL