public static void invokeGetTransactionStatus(AmazonFPS service, GetTransactionStatusRequest request) {
        try {
            
            GetTransactionStatusResponse response = service.getTransactionStatus(request);

            
            System.out.println ("GetTransactionStatus Action Response");
            System.out.println ("=============================================================================");
            System.out.println ();

            System.out.println("    GetTransactionStatusResponse");
            System.out.println();
            if (response.isSetGetTransactionStatusResult()) {
                System.out.println("        GetTransactionStatusResult");
                System.out.println();
                GetTransactionStatusResult  getTransactionStatusResult = response.getGetTransactionStatusResult();
                if (getTransactionStatusResult.isSetTransactionId()) {
                    System.out.println("            TransactionId");
                    System.out.println();
                    System.out.println("                " + getTransactionStatusResult.getTransactionId());
                    System.out.println();
                }
                if (getTransactionStatusResult.isSetTransactionStatus()) {
                    System.out.println("            TransactionStatus");
                    System.out.println();
                    System.out.println("                " + getTransactionStatusResult.getTransactionStatus().value());
                    System.out.println();
                }
                if (getTransactionStatusResult.isSetCallerReference()) {
                    System.out.println("            CallerReference");
                    System.out.println();
                    System.out.println("                " + getTransactionStatusResult.getCallerReference());
                    System.out.println();
                }
                if (getTransactionStatusResult.isSetStatusCode()) {
                    System.out.println("            StatusCode");
                    System.out.println();
                    System.out.println("                " + getTransactionStatusResult.getStatusCode());
                    System.out.println();
                }
                if (getTransactionStatusResult.isSetStatusMessage()) {
                    System.out.println("            StatusMessage");
                    System.out.println();
                    System.out.println("                " + getTransactionStatusResult.getStatusMessage());
                    System.out.println();
                }
            } 
            if (response.isSetResponseMetadata()) {
                System.out.println("        ResponseMetadata");
                System.out.println();
                ResponseMetadata  responseMetadata = response.getResponseMetadata();
                if (responseMetadata.isSetRequestId()) {
                    System.out.println("            RequestId");
                    System.out.println();
                    System.out.println("                " + responseMetadata.getRequestId());
                    System.out.println();
                }
            } 
            System.out.println();

           
        } catch (AmazonFPSException ex) {
            
            System.out.println("Caught Exception: " + ex.getMessage());
            System.out.println("Response Status Code: " + ex.getStatusCode());
            System.out.println("Error Code: " + ex.getErrorCode());
            System.out.println("Error Type: " + ex.getErrorType());
            System.out.println("Request ID: " + ex.getRequestId());
            System.out.print("XML: " + ex.getXML());
        }
    }