// then serializers:
addSerializer(DateTime.class, new DateTimeSerializer());
addSerializer(LocalDateTime.class, new LocalDateTimeSerializer());
addSerializer(LocalDate.class, new LocalDateSerializer());
addSerializer(DateMidnight.class, new DateMidnightSerializer());
addSerializer(Period.class, ToStringSerializer.instance);
addSerializer(Duration.class, new DurationSerializer());
}