}
// or a relation event
else if (itemsElement.attribute("node").getValue().equals(
RelationManager.NODE)) {
final RelationDomReader reader = new PersistentRelationDomReader();
for (Element itemElement : (List<Element>) itemsElement
.elements("item")) {
Relation relation = reader.readElement(new ElementAdapter(
itemElement.element("relation")));
try {
RelationManager.getInstance().handleMessage(
fromJID.toBareJID(), toJID.toBareJID(),
relation);