boolean replace)
{
if (caller_op != ClientInterceptorIterator.SEND_REQUEST)
{
throw new BAD_INV_ORDER("The operation \"add_request_service_context\" is " +
"currently invalid!", 10,
CompletionStatus.COMPLETED_MAYBE);
}
Integer _id = ObjectUtil.newInteger(service_context.context_id);
if (! replace && request_ctx.containsKey(_id))
{
throw new BAD_INV_ORDER("The ServiceContext with id " + _id.toString()
+ " has already been set!", 11,
CompletionStatus.COMPLETED_MAYBE);
}
request_ctx.put(_id, service_context);