public void edit(String unitName, String unitCostCenter, Date beginDate, Date endDate,
public void edit(String unitName, Integer unitCostCenter, Date beginDate, Date endDate,
    public void edit(String unitName, String unitCostCenter, Date beginDate, Date endDate,            UnitType type, IUnit parentUnit) {        this.setName(unitName);                this.setBeginDate(beginDate);        if(endDate != null && endDate.before(beginDate)){            throw new DomainException("error.endDateBeforeBeginDate");        }        this.setEndDate(endDate);        this.setType(type);        if (unitCostCenter != null && !unitCostCenter.equals("")) {            this.setCostCenterCode(Integer.valueOf(unitCostCenter));        }        else{            this.setCostCenterCode(null);        }        if (parentUnit != null) {            this.addParentUnits(parentUnit);        }    }