if (contextStatements.size() == 0) {
return false;
}
// Filter more thoroughly by considering snapshot and read-mode parameters
MemStatementCursor iter = new MemStatementCursor(contextStatements, null, null, null, false, snapshot,
readMode);
try {
return iter.next() != null;
}
finally {
iter.close();
}
}