return executeCommand((CacheRpcCommand) cmd, req);
else
return cmd.perform(null);
} catch (InterruptedException e) {
log.warnf("Shutdown while handling command %s", cmd);
return new ExceptionResponse(new CacheException("Cache is shutting down"));
} catch (Throwable x) {
if (cmd == null)
log.warnf(x, "Problems unmarshalling remote command from byte buffer");
else
log.warnf(x, "Problems invoking command %s", cmd);
return new ExceptionResponse(new CacheException("Problems invoking command.", x));
}
} else {
return null;
}
}