private void initializeMaterialAssignments(
     Collection<MaterialAssignmentTemplate> materialAssignments) {
   for (MaterialAssignmentTemplate each : materialAssignments) {
     each.getUnits();
     reattachMaterial(each.getMaterial());
     initializeMaterialCategory(each.getMaterial().getCategory());
   }
 }
 @Override
 protected BigDecimal getUnits(MaterialAssignmentTemplate assignment) {
   return assignment.getUnits();
 }