Code example for CacheException

0
      if (AccessType.READ_ONLY.equals(accessType)) {
         return new ReadOnlyAccess(this);
      } else if (AccessType.TRANSACTIONAL.equals(accessType)) {
         return new TransactionalAccess(this);
      } 
      throw new CacheException("Unsupported access type [" + accessType.getExternalName() + "]");
   } 
 
   public PutFromLoadValidator getPutFromLoadValidator() { 
      return new PutFromLoadValidator(transactionManager); 
   } 
}