public static AllocationResult createCurrent(Scenario scenario, Task task) {
Set<ResourceAllocation<?>> resourceAllocations = task
.getSatisfiedResourceAllocations();
List<ModifiedAllocation> modifiedAllocations = ModifiedAllocation.copy(
scenario, resourceAllocations);
AggregateOfResourceAllocations aggregate = AggregateOfResourceAllocations
.createFromSatisfied(ModifiedAllocation
.modified(modifiedAllocations));
return new AllocationResult(task, task.getSpecifiedWorkableDays(),
task.getCalculatedValue(), aggregate,
Collections.<ResourceAllocation<?>> emptyList(),