import static org.mvel2.asm.Opcodes.RETURN;
public class ConsequenceGenerator {
public static void generate(final ConsequenceStub stub, KnowledgeHelper knowledgeHelper, WorkingMemory workingMemory) {
RuleTerminalNode rtn = (RuleTerminalNode) knowledgeHelper.getActivation().getTuple().getLeftTupleSink();
final Declaration[] declarations = rtn.getDeclarations();
final boolean isOrRule = rtn.getRule().getTransformedLhs(
((ReteooRuleBase) workingMemory.getRuleBase()).getConfiguration().getComponentFactory().getLogicTransformerFactory().getLogicTransformer()
).length > 1;
final LeftTuple tuple = (LeftTuple)knowledgeHelper.getTuple();
// Sort declarations based on their offset, so it can ascend the tuple's parents stack only once