setName(unit.getName());
setName(getRealName(unit));
    public void copyFromDomain(IUnit unit) {        super.copyFromDomain(unit);        if (unit != null) {            List superiorUnits = new ArrayList();            setCostCenterCode(unit.getCostCenterCode().toString());            setName(unit.getName());            IUnit unitBase = unit;            if (unit.getParentUnit() != null) {                while (unit.getParentUnit() != null) {                    superiorUnits.add(unit.getParentUnit().getName());                    unit = unit.getParentUnit();                }                String unitName = unitBase.getCostCenterCode().toString() + " - " + unitBase.getName();                 superiorUnits.add(0, unitName);                Collections.reverse(superiorUnits);                setSuperiorUnitsNames(superiorUnits);            }        }    }