DocumentSet docs,
	public Sequence eval(		DocumentSet docs,		Sequence contextSequence,		Item contextItem)		throws XPathException {		// request object is read from global variable $request		Variable var = context.resolveVariable("request");		if(var.getValue().getItemType() != Type.JAVA_OBJECT)			throw new XPathException("Variable $request is not bound to an Java object.");				// get parameters		String param = getArgument(0).eval(docs, contextSequence, contextItem).getStringValue();		String defValue = getArgument(1).eval(docs, contextSequence, contextItem).getStringValue();				JavaObjectValue value = (JavaObjectValue)			var.getValue().itemAt(0);		if(value.getObject() instanceof org.apache.cocoon.environment.Request)			return cocoonRequestParam(				(org.apache.cocoon.environment.Request)value.getObject(), param, defValue			);		else if(value.getObject() instanceof HttpServletRequest)			return httpRequestParam((HttpServletRequest)value.getObject(), param, defValue);		else			throw new XPathException("Variable $request is not bound to a Request object.");	}