public static List<EffortModification> createHoursModificationsAndAssociate(
Task task, List<AllocationRow> currentRows,
Collection<? extends ResourceAllocation<?>> requestedToRemove) {
List<EffortModification> result = new ArrayList<EffortModification>();
for (AllocationRow each : currentRows) {
EffortModification hoursModification = each
.toHoursModification(task);
result.add(hoursModification);
each.associateAllocationToModify(hoursModification
.getBeingModified());
}
setCustomAssignedEffortForResource(currentRows, requestedToRemove);
return result;
}