rl = rl.getContextNodes(inPredicate);
rl = rl.getContextNodes(contextId);
	public Sequence eval(Sequence contextSequence, Item contextItem) throws XPathException {        if (context.getProfiler().isEnabled()) {            context.getProfiler().start(this);                   context.getProfiler().message(this, Profiler.DEPENDENCIES, "DEPENDENCIES", Dependency.getDependenciesName(this.getDependencies()));            if (contextSequence != null)                context.getProfiler().message(this, Profiler.START_SEQUENCES, "CONTEXT SEQUENCE", contextSequence);            if (contextItem != null)                context.getProfiler().message(this, Profiler.START_SEQUENCES, "CONTEXT ITEM", contextItem.toSequence());        }                Sequence result; 		if (getLength() == 0)            result = Sequence.EMPTY_SEQUENCE;        else {        		if (contextItem != null)    			contextSequence = contextItem.toSequence();                		Expression left = getLeft();    		Expression right = getRight();    		if(optimize) {    			NodeSet rl = left.eval(contextSequence, null).toNodeSet();    			rl = rl.getContextNodes(inPredicate);    			// TODO: optimize and return false if rl.getLength() == 0 ?    			NodeSet rr = right.eval(contextSequence, null).toNodeSet();    			rr = rr.getContextNodes(inPredicate);                result = rr.intersection(rl);    		} else {    			boolean ls = left.eval(contextSequence).effectiveBooleanValue();    			// immediately return false if the left operand is false    			if (!ls)                    result = BooleanValue.FALSE;                else {        			boolean rs = right.eval(contextSequence).effectiveBooleanValue();                    result = (ls && rs) ? BooleanValue.TRUE : BooleanValue.FALSE;                }    		}        }                if (context.getProfiler().isEnabled())             context.getProfiler().end(this, "", result);        return result;        	}