@Override
    public DocumentTranslationRequestData getDocumentTranslationRequest(
            String trId) throws ServiceException {
        if (trId == null || trId.isEmpty()) {
            throw new IllegalArgumentException("Non-empty trId must be specified.");
        }

        DocumentTranslationRequestResponse resp = invokeApiJson(
                "GET",
                escapePathSegment(account.getInstanceId()) + "/v2/doc-trs/"
                    + escapePathSegment(trId),
                null,
                DocumentTranslationRequestResponse.class);

        if (resp.getStatus() == Status.ERROR) {
            throw new ServiceException(resp.getMessage());
        }

        return new DocumentTranslationRequestDataImpl(resp.id, resp.translationRequest);
    
    }
@ Override public DocumentTranslationRequestData getDocumentTranslationRequest ( String trId ) throws ServiceException { if ( trId == null || trId . isEmpty ( ) ) { throw new IllegalArgumentException ( "Non-empty trId must be specified." ) ; } DocumentTranslationRequestResponse resp = invokeApiJson ( "GET" , escapePathSegment ( account . getInstanceId ( ) ) + "/v2/doc-trs/" + escapePathSegment ( trId ) , null , DocumentTranslationRequestResponse . class ) ; if ( resp . getStatus ( ) == Status . ERROR ) { throw new ServiceException ( resp . getMessage ( ) ) ; } return new DocumentTranslationRequestDataImpl ( resp . id , resp . translationRequest ) ; }
/* (non-Javadoc)
@see com.ibm.g11n.pipeline.client.ServiceClient#getDocumentTranslationRequest(java.lang.String)