/** * If the cache is STOPPING, non-transaction invocations, or transactional invocations for * transaction others than the ongoing ones, are no allowed. This method returns true if under * this circumstances meet. Otherwise, it returns false. */ private boolean stoppingAndNotAllowed(ComponentStatus status, InvocationContext ctx) throws Exception { return status.isStopping() && (!ctx.isInTxScope() || !isOngoingTransaction(ctx)); }