package org.folio.rest.tools.utils;

import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.SerializationFeature;
import com.fasterxml.jackson.databind.module.SimpleModule;

/**
 * @author shale
 *
 */
public final class ObjectMapperTool {
  private ObjectMapperTool() {
    throw new UnsupportedOperationException("Cannot instantiate utility class.");
  }

  private static final ObjectMapper DEFAULT_MAPPER = new ObjectMapper();

  private static final ObjectMapper MAPPER = new ObjectMapper();

  static {
    DEFAULT_MAPPER.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
    MAPPER.configure(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS, false);
  }

  public static ObjectMapper getDefaultMapper() {
    return DEFAULT_MAPPER;
  }

  public static ObjectMapper getMapper() {
    return MAPPER;
  }

  public static <M, D extends JsonDeserializer<M>> void registerDeserializer(Class<M> clazz, D deserializer) {
    SimpleModule module = new SimpleModule();
    module.addDeserializer(clazz, deserializer);
    MAPPER.registerModule(module);
  }

}

@@ -328,126 +328,8 @@
 l %7B%0A
-  private ObjectMapperTool() %7B%0A    throw new UnsupportedOperationException(%22Cannot instantiate utility class.%22);%0A  %7D%0A%0A
   pr
@@ -638,24 +638,142 @@
 alse);%0A  %7D%0A%0A
+  private ObjectMapperTool() %7B%0A    throw new UnsupportedOperationException(%22Cannot instantiate utility class.%22);%0A  %7D%0A%0A
   public sta

Fix checkstyle issue