class HazelcastCacheService implements ICacheService {

    @Override
    public <K, V> ICache<K, V> getCache(final String cacheName) {
        final ICache<K, V> cache;
        if (null != hazelcast) {
            cache = new HazelcastCache<>(hazelcast.getMap(cacheName));
        } else {
            cache = null;
        }

        return cache;
    }

}