Code example for CacheException

0
                    new ReadWriteAccessDelegate<HazelcastCollectionRegion>(this, props));
        } 
        if (AccessType.TRANSACTIONAL.equals(accessType)) {
            throw new CacheException("Transactional access is not currently supported by Hazelcast.");
        } 
        throw new CacheException("Got unknown AccessType " + accessType
                                 + " while attempting to build CollectionRegionAccessStrategy."); 
    } 
}