class ZMSFileChangeLogStoreCommon {

    public synchronized <T> T get(String name, Class<T> classType) {

        File file = new File(rootDir, name);
        if (!file.exists()) {
            return null;
        }

        try {
            return jsonMapper.readValue(file, classType);
        } catch (Exception ex) {
            LOGGER.error("Unable to retrieve file: {} error: {}", file.getAbsolutePath(), ex.getMessage());
        }
        return null;
    }

    public  ZMSFileChangeLogStoreCommon(final String rootDirectory);

}