mapper.getSerializationConfig().setSerializationInclusion(Inclusion.NON_NULL);
mapper.getDeserializationConfig().set(Feature.FAIL_ON_UNKNOWN_PROPERTIES, Boolean.FALSE);
// mapper.getSerializationConfig().setDateFormat(StdDateFormat.getBlueprintISO8601Format());
// mapper.getDeserializationConfig().setDateFormat(StdDateFormat.getBlueprintISO8601Format());
AnnotationIntrospector pair =
new AnnotationIntrospector.Pair(new JaxbAnnotationIntrospector(),
new JacksonAnnotationIntrospector());
mapper.getDeserializationConfig().setAnnotationIntrospector(pair);
mapper.getSerializationConfig().setAnnotationIntrospector(pair);
return mapper;
}