CQLTermNode root = null;
int max = maxTerms, pos = position;
long startTime = System.currentTimeMillis();
PositiveInteger pi = request.getMaximumTerms();
if(pi!=null) {
max=pi.intValue();
pos=max/2+1;
}
NonNegativeInteger nni = request.getResponsePosition();
if(nni!=null)
pos=nni.intValue();