code: public void addListener(final ORecordListener iListener) {
      if (_listeners == null)
        _listeners = Collections.newSetFromMap(new WeakHashMap<ORecordListener, Boolean>());
  
      _listeners.add(iListener);
    }
docs: Add a listener to the current document to catch all the supported events.
  
  @see ORecordListener
  
  @param iListener
  ODocumentListener implementation