String unitName = getRealName(unitBase);
String unitName = unitBase.getName();
    private void getParentUnitsNames(IUnit unit, List superiorUnits, IUnit unitBase) {        String unitName = getRealName(unitBase);                        unitName = unitBase.getCostCenterCode().toString() + " - " + unitName;         if (unit.getParentUnit() != null) {            while (unit.getParentUnit() != null) {                                    String uniName = getRealName(unit.getParentUnit());                superiorUnits.add(uniName);                                    unit = unit.getParentUnit();            }                       superiorUnits.add(0, unitName);            Collections.reverse(superiorUnits);            setSuperiorUnitsNames(superiorUnits);        }        else{            superiorUnits.add(0, unitName);            setSuperiorUnitsNames(superiorUnits);        }    }