public BigDecimal getPriceCostByTypeOfWorkHour(String code)
throws InstanceNotFoundException {
if (StringUtils.isBlank(code)) {
throw new InstanceNotFoundException(code, HourCost.class.getName());
}
for (HourCost c : this.hourCosts) {
if (c.getType().getCode().equalsIgnoreCase(StringUtils.trim(code))) {
return c.getPriceCost();
}
}
throw new InstanceNotFoundException(code, HourCost.class.getName());
}