public Restriction createRestriction() {
return Restriction.build(createRestrictionSource());
}
private IRestrictionSource createRestrictionSource() {
return new IRestrictionSource() {
@Override
public EffortDuration getTotalEffort() {
return aggregate.getTotalEffort();
}