code: protected void setMessage(byte[] msg) {
          try {
              readData(new DataInputStream(new ByteArrayInputStream(msg)));
          }
          catch (IOException ex) {
              logger.error("Problem setting response message - {}", ex.getMessage());
          }
      }
docs: Utility method to set the raw data of the message. Should not be used
  except under rare circumstances.
  <p>
  
  @param msg the <tt>byte[]</tt> resembling the raw modbus response
  message.