@Override public void handleEvent(final Event event) { try { this.out.append("\t<event "); Map<String, String> attr = event.getAttributes(); for (Map.Entry<String, String> entry : attr.entrySet()) { this.out.append(entry.getKey()); this.out.append("=\""); this.out.append(encodeAttributeValue(entry.getValue())); this.out.append("\" "); } this.out.append(" />\n"); } catch (IOException e) { e.printStackTrace(); } }