code: @SuppressWarnings("unchecked")
      public void addItemEventListener(@SuppressWarnings("rawtypes") ItemEventListener listener) {
          StanzaListener conListener = new ItemEventTranslator(listener);
          itemEventToListenerMap.put(listener, conListener);
          pubSubManager.getConnection().addSyncStanzaListener(conListener, new EventContentFilter(EventElementType.items.toString(), "item"));
      }
docs: Register a listener for item publication events.  This
  listener will get called whenever an item is published to
  this node.
  
  @param listener The handler for the event