code: public byte[] querySm(int sequenceNumber, String messageId,
              byte sourceAddrTon, byte sourceAddrNpi, String sourceAddr)
              throws PDUStringException {
          StringValidator.validateString(messageId, StringParameter.MESSAGE_ID);
          StringValidator.validateString(sourceAddr, StringParameter.SOURCE_ADDR);
  
          PDUByteBuffer buf = new PDUByteBuffer(SMPPConstant.CID_QUERY_SM, 0,
                  sequenceNumber);
          buf.append(messageId);
          buf.append(sourceAddrTon);
          buf.append(sourceAddrNpi);
          buf.append(sourceAddr);
          return buf.toBytes();
      }
docs: /*
  (non-Javadoc)
  
  @see org.jsmpp.util.PDUComposer#querySm(int, java.lang.String, byte,
  byte, java.lang.String)