} else if (c == Long.class) {
w.writeLong((Long) o);
} else if (c == Integer.class) {
w.writeInt((Integer) o);
} else if (c == Short.class) {
w.writeShort((Short) o);
} else if (c == Duration.class) {
w.writeCharacters(((Duration) o).toString());
} else if (c == XMLGregorianCalendar.class) {
w.writeCharacters(((XMLGregorianCalendar) o).toXMLFormat());
} else if (c == byte[].class) {