public static void setupObjectMapper(ObjectMapper objectMapper, StoreKeyFactory storeKeyFactory) {
    SimpleModule module = new SimpleModule();
    module.addDeserializer(StoreKey.class, new StoreKeyDeserializer(storeKeyFactory));
    module.addSerializer(StoreKey.class, new StoreKeySerializer());
    objectMapper.registerModule(module);
  }
Set up {@link ObjectMapper} to use custom serializer and deserializer.
The reason to use this method instead of adding annotation directly to class, is because we need a {@link StoreKeyFactory}
to deserialize a string back to {@link StoreKey}.
@param objectMapper The {@link ObjectMapper}.
@param storeKeyFactory The {@link StoreKeyFactory}.
ambry-api/src/main/java/com/github/ambry/store/StoreKeyJacksonConfig.java