} else if (c == Float.class) {
w.writeFloat((Float) o);
} 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) {