}
private void getNonEmptyStmtIterator() {
// make sure we have a statement iterator
if (this.stmtit == null) {
Model m = this.modelit.next();
m.open();
this.stmtit = m.findStatements(this.pattern);
}
// make sure we have a statement iterator, which contains statements
while (this.modelit.hasNext() && !this.stmtit.hasNext()) {
this.stmtit.close();
Model m = this.modelit.next();
m.open();
this.stmtit = m.findStatements(this.pattern);
}
}