if (unitName == null) {
if (unitName == null || StringUtils.isEmpty(unitName.trim())) {
    public static Unit createNewExternalInstitution(String unitName) {	if (unitName == null) {	    throw new DomainException("error.unit.empty.name");	}	Unit externalInstitutionUnit = UnitUtils.readExternalInstitutionUnit();	if (externalInstitutionUnit == null) {	    throw new DomainException("error.exception.commons.institution.rootInstitutionNotFound");	}	Unit institutionUnit = new Unit();	institutionUnit.setName(unitName);	institutionUnit.setBeginDate(Calendar.getInstance().getTime());	institutionUnit.setType(PartyTypeEnum.EXTERNAL_INSTITUTION);	institutionUnit.addParentUnit(externalInstitutionUnit, AccountabilityType		.readAccountabilityTypeByType(AccountabilityTypeEnum.ORGANIZATIONAL_STRUCTURE));	return institutionUnit;    }