} else if ("eventsMap".equals(element.getName())) {
Map map = FastMap.newInstance();
for (Object evEl : element.elements()) {
Element evElement = (Element) evEl;
long ref = getRef(evElement);
Role role = Role.valueOf(evElement.attributeValue("role"));
map.put(getObject(ref, Event.class), role);
}
return (T) map;
}
} else if (Event.class.isAssignableFrom(obj.getClass())) {