if (provider.canCalculateCostForFulfillmentGroup(fulfillmentGroup, fulfillmentGroup.getFulfillmentOption())) {
return provider.calculateCostForFulfillmentGroup(fulfillmentGroup);
}
}
throw new FulfillmentPriceException("No valid processor was found to calculate the FulfillmentGroup cost with " +
"FulfillmentOption id: " + fulfillmentGroup.getFulfillmentOption().getId() +
" and name: " + fulfillmentGroup.getFulfillmentOption().getName());
}