code: @Override
      public SegmentData getTRSegment(String trId, DocumentType type, String documentId,
               String language, String segmentKey)
              throws ServiceException {
          if (trId == null || trId.isEmpty()) {
              throw new IllegalArgumentException("Non-empty trId must be specified.");
          }
          if (documentId == null || documentId.isEmpty()) {
              throw new IllegalArgumentException("Non-empty documentId must be specified.");
          }
          if (language == null || language.isEmpty()) {
              throw new IllegalArgumentException("Non-empty language must be specified.");
          }
          if (segmentKey == null || segmentKey.isEmpty()) {
              throw new IllegalArgumentException("Non-empty segmentKey must be specified.");
          }
  
          GetSegmentResponse resp = invokeApiJson(
                  "GET",
                  escapePathSegment(account.getInstanceId()) + "/v2/doc-trs/" + escapePathSegment(trId) + 
                      "/" + type.toString().toLowerCase() + "/"
                      + escapePathSegment(documentId) + "/" + language
                      + "/" + escapePathSegment(segmentKey),
                  null,
                  GetSegmentResponse.class);
  
          if (resp.getStatus() == Status.ERROR) {
              throw new ServiceException(resp.getMessage());
          }
  
          return new SegmentDataImpl(resp.segmentData);
      
      }
docs: /* (non-Javadoc)
  @see com.ibm.g11n.pipeline.client.ServiceClient#getTRSegment(java.lang.String, com.ibm.g11n.pipeline.client.DocumentType, java.lang.String, java.lang.String, java.lang.String)