if (unitName == null) {
if (unitName == null || StringUtils.isEmpty(unitName.trim())) {
    public static Unit createNewUnit(String unitName, Integer costCenterCode, String acronym,	    Date beginDate, Date endDate, PartyTypeEnum type, Unit parentUnit,	    AccountabilityType accountabilityType, String webAddress) throws FenixFilterException,	    FenixServiceException {	if (unitName == null) {	    throw new DomainException("error.unit.empty.name");	}	Unit unit = new Unit();	unit.checkUnitDates(beginDate, endDate);	unit.checkAcronym(acronym, type);	unit.setCostCenterCode(costCenterCode);	unit.setName(unitName);	unit.setBeginDate(beginDate);	unit.setEndDate(endDate);	unit.setType(type);	unit.setWebAddress(webAddress);	unit.setAcronym(acronym);	if (parentUnit != null && accountabilityType != null) {	    unit.addParentUnit(parentUnit, accountabilityType);	}	return unit;    }