public Fork promote(Program.Branch<S> branch) { Fork f = new Fork(branch, parent, id); f.setAggregateCount(aggregateCount); f.setAggregateSum(aggregateSum); return f; }