response.setNumberOfRecords(new NonNegativeInteger(Long.toString(postingsCount)));
int resultSetTTL = defaultResultSetTTL;
NonNegativeInteger nni = request.getResultSetTTL();
if(nni!=null)
resultSetTTL=nni.intValue();
result.setResultSetIdleTime(resultSetTTL);
if (postingsCount>0) { // we don't mess with records otherwise
if (resultSetTTL>0 && returnResultSetId) {
// cache the resultSet and set (or reset) its timer
if(resultSetID==null)