code: public byte[] querySmResp(int sequenceNumber, String messageId,
              String finalDate, byte messageState, byte errorCode)
              throws PDUStringException {
          StringValidator.validateString(messageId, StringParameter.MESSAGE_ID);
          StringValidator.validateString(finalDate, StringParameter.FINAL_DATE);
  
          PDUByteBuffer buf = new PDUByteBuffer(SMPPConstant.CID_QUERY_SM_RESP,
                  0, sequenceNumber);
          buf.append(messageId);
          buf.append(finalDate);
          buf.append(messageState);
          buf.append(errorCode);
          return buf.toBytes();
      }
docs: /*
  (non-Javadoc)
  
  @see org.jsmpp.util.PDUComposer#querySmResp(int, java.lang.String,
  java.lang.String, byte, byte)