class JsonObjectMapper {

  public <T> T deserializeBackwardsCompatibleValue(final String stringValue, final Class<T> type) throws IOException {
    try {
      return snakeCaseMapper.readValue(stringValue, type);
    } catch (final Exception e) {
      final ObjectMapper camelCaseMapper = new ObjectMapper()
        .registerModule(TimeModuleFactory.Companion.createTimeModule())
        .setPropertyNamingStrategy(LOWER_CAMEL_CASE);
      return camelCaseMapper.readValue(stringValue, type);
    }
  }

  public  JsonObjectMapper();

}