FUTURE_REQUEST_PROCESSOR_ATT_NAME);
if (future != null) {
future.cancel(true);
}
AbstractContentSession contentRequest = (AbstractContentSession) asyncContext
.getRequest().getAttribute(CONTENT_REQUEST_ATT_NAME);
JsonRpcRequest jsonRequest = (JsonRpcRequest) asyncContext.getRequest()
.getAttribute(CONTROL_PROTOCOL_REQUEST_MESSAGE_ATT_NAME);
if (contentRequest != null) {
contentRequest.internalTerminateWithError(asyncContext, errorCode,
msg, jsonRequest);
}
}