}
@Override
public PriceSetAddItemActionResponse execute(PriceSetAddItemAction action) throws Exception {
String typeName = action.getItemTypeName();
ItemTypeDto itemTypeDto = clientFacade.getItemTypeByName(typeName);
if (itemTypeDto == null) {
throw new InvalidItemTypeException(typeName, ErrorCode.INVALID_ITEM_TYPE);
}
PriceSetItemDto priceSetItemDto = new PriceSetItemDto();
priceSetItemDto.setItemTypeName(itemTypeDto.getName());
priceSetItemDto.setItemTypeIcon(itemTypeDto.getGraphicIcon());
priceSetItemDto.setItemTypeID(itemTypeDto.getItemTypeID());
priceSetItemDto.setItemCategoryID(itemTypeDto.getItemCategoryID());
priceSetItemDto.setPrice(BigDecimal.ZERO);
PriceSetAddItemActionResponse response = new PriceSetAddItemActionResponse();
response.setPriceSetItem(priceSetItemDto);
return response;