private final Map<Class<? extends Definition>, XMLHandler<?>> handlers = Maps
.newHashMap();
@SuppressWarnings("rawtypes")
public XMLWriter() {
handlers.put(ApplicationDefImpl.class, new ApplicationDefHandler());
handlers.put(AttributeDefImpl.class, new AttributeDefHandler());
handlers.put(AttributeDefRefImpl.class, new AttributeDefRefHandler());
handlers.put(ComponentDefImpl.class, new ComponentDefHandler());
handlers.put(ComponentDefRefImpl.class, new ComponentDefRefHandler());
handlers.put(EventDefImpl.class, new EventDefHandler());