occur = NodeBooleanClause.Occur.SHOULD;
} else {
// Shouldn't happen
throw new IllegalArgumentException("No occurrence could be built!");
}
clauses[i] = new NodeBooleanClause((NodeQuery) q, occur);
} else {
throw new IllegalArgumentException("Building NodeBooleanClauses, " +
"expecting only NodeQuery, but got: " + q.getClass().getName());
}
}