/**
   * Writes this event object to the bytesMessage.
   *
   * @param bytesMessage Bytes message
   * @throws javax.jms.JMSException If an exception occurs while writing value to the message
   * @see #fromMessage(javax.jms.BytesMessage)
   */
  @Override
  public void toMessage(BytesMessage bytesMessage) throws JMSException {
    super.toMessage(bytesMessage);
    bytesMessage.setIntProperty("Request Type", RequestEventFactory.LOG_LEVEL_REQUEST_EVENT);

    if (loggerNames != null) {
      bytesMessage.writeInt(loggerNames.size());
      for (String loggerName : loggerNames) bytesMessage.writeUTF(loggerName);
    } else bytesMessage.writeInt(-1);
  }
  /**
   * Reads the values from the bytesMessage and sets the properties of this event object.
   *
   * @param bytesMessage Bytes message
   * @throws javax.jms.JMSException If an exception occurs while reading values from the message
   * @see #toMessage(javax.jms.BytesMessage)
   */
  @Override
  public void fromMessage(BytesMessage bytesMessage) throws JMSException {
    super.fromMessage(bytesMessage);

    int size = bytesMessage.readInt();
    for (int i = 0; i < size; i++) {
      if (loggerNames == null) loggerNames = new ArrayList<String>();

      loggerNames.add(bytesMessage.readUTF());
    }
  }