code: public static ServiceAccount getInstance(String url, String instanceId,
              String userId, String password) {
  
          if (url.endsWith("/")) {
              // trim off trailing slash
              url = url.substring(0, url.length() - 1);
          }
  
          return new ServiceAccount(url, instanceId, userId, password);
      }
docs: Returns an instance of ServiceAccount for the specified IBM Globalization
  Pipeline service URL and credentials.
  <p>
  All arguments must not be null.
  
  @param url           The service URL of Globlization Pipeline service.
  (e.g. https://gp-rest.ng.bluemix.net/translate/rest)
  @param instanceId    The instance ID of the service instance.
  (e.g. d3f537cd617f34c86ac6b270f3065e73)
  @param userId        The user ID for the service instance.
  (e.g. e92a1282a0e4f97bec93aa9f56fdb838)
  @param password      The password for the service instance.
  (e.g. zg5SlD+ftXYRIZDblLgEA/ILkkCNqE1y)
  @return An instance of ServiceAccount