if(unitName == null) { throw new FenixServiceException("error.unit.empty.name"); }
    public void run(Integer unitID, Integer parentUnitID, String unitName, String unitCostCenter,            String acronym, Date beginDate, Date endDate, PartyTypeEnum type, Integer departmentID,            Integer degreeID, AccountabilityType accountabilityType, String webAddress) throws ExcepcaoPersistencia,            FenixServiceException, DomainException {        Unit unit = null;        if (unitID == null) {            unit = new Unit();        } else {            unit = (Unit) rootDomainObject.readPartyByOID(unitID);            if (unit == null) {                throw new FenixServiceException("error.noUnit");            }        }        Unit parentUnit = setParentUnits(parentUnitID, unit);        Integer costCenterCode = null;        if (unitCostCenter != null && !unitCostCenter.equals("")) {            costCenterCode = (Integer.valueOf(unitCostCenter));        }        unit.edit(unitName, costCenterCode, acronym, beginDate, endDate, type, parentUnit,                accountabilityType, webAddress);        setDepartment(departmentID, unit);        setDegree(degreeID, unit);    }