Term products = (Term) secondArgument;
// all reactants connect to reaction with REACTANT_IN relationship
for (BELObject reactant : reactants.getFunctionArguments()) {
Term sub = (Term) reactant;
Object obj = new Object(reaction);
Statement stmt = new Statement(sub, null, null, obj, REACTANT_IN);
attachExpansionRuleCitation(stmt);
statements.add(stmt);
}
// a reaction connects to its products with HAS_PRODUCT relationship
for (BELObject product : products.getFunctionArguments()) {
Term sub = (Term) product;
Object obj = new Object(sub);
Statement stmt =
new Statement(reaction, null, null, obj, HAS_PRODUCT);
attachExpansionRuleCitation(stmt);
statements.add(stmt);
}