/** * Returns an instance of the mapper for the specified type property. * * @param typeProperty The name of the property signifying the data type. * @return A mapper. */ public static ObjectMapper getMapper(String typeProperty) { typeProperty = typeProperty == null ? DEFAULT_TYPE_PROPERTY : typeProperty; ObjectMapper mapper = mappers.get(typeProperty); return mapper == null ? initMapper(typeProperty) : mapper; }