institutionUnit.setType(PartyType.EXTERNAL_INSTITUTION);
institutionUnit.setType(PartyTypeEnum.EXTERNAL_INSTITUTION);
    private Unit makeNewUnit(String unitName, Unit externalIntitutionsUnit) {        Unit institutionUnit = DomainFactory.makeUnit();        institutionUnit.setName(unitName);        institutionUnit.setBeginDate(Calendar.getInstance().getTime());        institutionUnit.setType(PartyType.EXTERNAL_INSTITUTION);          institutionUnit.addParents(externalIntitutionsUnit);        return institutionUnit;    }