@Override
public MappingMongoConverter mappingMongoConverter() throws Exception {
// We provide custom conversions for some value objects so that the resulting serialized json looks nicer,
// is more readable, and is smaller.
MappingMongoConverter mappingMongoConverter = super.mappingMongoConverter();
List<Converter<?,?>> converters = new ArrayList<Converter<?,?>>();
converters.add(new ProjectIdReadConverter());
converters.add(new ProjectIdWriteConverter());
converters.add(new UserIdReadConverter());
converters.add(new UserIdWriteConverter());
converters.add(new EmailAddressReadConverter());
converters.add(new EmailAddressWriteConverter());
mappingMongoConverter.setCustomConversions(new CustomConversions(converters));
return mappingMongoConverter;
}