return new GridFinishedFuture<>(ctx,
new GridException("Failed to find registered handler for command: " + req.command()));
final GridSecurityContext subjCtx0 = subjCtx;
return res.chain(new C1<GridFuture<GridRestResponse>, GridRestResponse>() {
@Override public GridRestResponse apply(GridFuture<GridRestResponse> f) {
GridRestResponse res;
try {
res = f.get();