private OrderCost getOrderCost(final String costTypeName,
final CostTypeManager costTypeManager, final BigDecimal costAmount,
final Order order, final CostUnitManager costUnitManager,
final String costUnitName) {
CostType costType = costTypeManager.findByName(costTypeName);
CostUnit costUnit = costUnitManager.findByName(costUnitName);
OrderCost orderCost = order.getOrderCost(costTypeName, costUnitName);
orderCost = orderCost != null ? orderCost : new OrderCost();
orderCost.setCostAmount(costAmount);
orderCost.setCostType(costType);
orderCost.setCostUnit(costUnit);