class DistributedCache implements Cache {

    @Override
    public ActionResponse get(String key) {
        if (null == key) {
            return null; //Hazelcast map throws NPE if key is null
        }
        String data = distributedMap.get(key);
        if(null != data) {
            try {
                return mapper.readValue(data, ActionResponse.class);
            } catch (IOException e) {
                logger.error("Error deserializing: ", e);
            }
        }
        return null;
    }

    public  DistributedCache(HazelcastConnection hazelcastConnection, String name, ObjectMapper mapper);

}