code: public static ServiceAccount getInstance(String url, String instanceId,
              TokenManager tokenManager) {
  
          if (url.endsWith("/")) {
              // trim off trailing slash
              url = url.substring(0, url.length() - 1);
          }
  
          return new ServiceAccount(url, instanceId, tokenManager);
      }
docs: Returns an instance of ServiceAccount for the specified IBM Globalization
  Pipeline service URL and credentials.
  <p>
  All arguments must no 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 tokenManager
  IAM Token Manager.
  
  @return An instance of ServiceAccount