return retval == null ? false : retval;
}
private Object handleAll(InvocationContext ctx, VisitableCommand command) throws Throwable {
try {
ComponentStatus status = componentRegistry.getStatus();
if (command.ignoreCommandOnStatus(status)) {
log.debugf("Status: %s : Ignoring %s command", status, command);
return null;
}
if (status.isTerminated()) {
throw new IllegalStateException(String.format(
"%s is in 'TERMINATED' state and so it does not accept new invocations. " +
"Either restart it or recreate the cache container.",
getCacheNamePrefix()));
} else if (stoppingAndNotAllowed(status, ctx)) {