GridRestResponse res = new GridRestResponse(STATUS_SECURITY_CHECK_FAILED, e.getMessage());
if (ctx.isEnterprise()) {
try {
res.sessionTokenBytes(updateSessionToken(req, subjCtx));
}
catch (GridException e1) {
U.warn(log, "Cannot update response session token: " + e1.getMessage());
}
}