code: public void init(BaseMessageReceiver messageHandler, Record record, BaseMessageFilter messageFilter)
      {
          super.init(messageHandler, messageFilter); // This will remove this listener on close.
          m_record = record;
          m_record.addListener(m_closeOnFreeBehavior = new FreeOnFreeHandler(this));
      }
docs: Constructor.