this.converterFactory = converterFactory;
this.objectMapper = objectMapper;
this.classLoader = classLoader == null ? getClass().getClassLoader() : classLoader;
this.objectMapper.registerModule(
new SimpleModule("Axon-Jackson Module")
.addSerializer(ReadableInstant.class, new ToStringSerializer())
.addDeserializer(DateTime.class, new JodaDeserializer<DateTime>(DateTime.class))
.addDeserializer(Instant.class, new JodaDeserializer<Instant>(Instant.class))
.addDeserializer(MutableDateTime.class,
new JodaDeserializer<MutableDateTime>(MutableDateTime.class))
.addDeserializer(YearMonth.class, new JodaDeserializer<YearMonth>(YearMonth.class))