}
private void assertNonTransactional(InvocationContext ctx) {
//this only happens if the cache is used in a transaction's scope
if (ctx.isInTxScope()) {
throw new InvalidCacheUsageException(
"This is a non-transactional cache and cannot be accessed with a transactional InvocationContext.");
}
}