protected ObjectMapper createObjectMapper(boolean typeInformationIsIncluded) {
ObjectMapper mapper = new ObjectMapperProvider().getContext(ObjectMapper.class);
if (typeInformationIsIncluded) {
mapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL);
} else {
mapper.disableDefaultTyping();
}
return mapper;
}
/**