@Override public T convertToDataModelType(Document document) { try { restoreDots(document); String json = objectMapper.writeValueAsString(document); return objectMapper.readValue(json, clazz); } catch (IOException e) { throw new UncheckedIOException(e); } }