// Document node (shared across all expansion cliques).
DocumentNode docNode = new DocumentNode();
// Expression generator (shared across all expansion cliques).
ExpressionGenerator generator = new TermExpressionGenerator();
// Add cliques corresponding to best expansion concepts.
for (int i = 0; i < numTerms; i++) {
Accumulator a = bestConcepts[i];