docs: public synchronized void checkXACommandCompletionStatus(int expected, Conversation conversation)
        throws XAException, Exception
     {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.entry(tc, "checkXACommandCompletionStatus", new Object[]{expected, conversation});
  
        checkReleased();
  
        if (receivedData != null)
        {
           // First get the completion code
           int exceptionType = getCommandCompletionCode(expected);
  
           // If this indicates an exception, then create it and throw it
           if (exceptionType != CommsConstants.SI_NO_EXCEPTION)
           {
              throw getException(conversation);
           }
  
           // Otherwise there was no exception
           if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) SibTr.debug(this, tc, "No exception");
        }
  
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) SibTr.exit(this, tc, "checkXACommandCompletionStatus");
     }