if (accessGroupType.equals(SpaceAccessGroupType.PERSON_OCCUPATION)) {
if (accessGroupType.equals(SpaceAccessGroupType.PERSON_OCCUPATION_ACCESS_GROUP)) {
    public void run(Space space, SpaceAccessGroupType accessGroupType, Person person, boolean toAdd) throws FenixServiceException {	if (person != null) {	    if (accessGroupType.equals(SpaceAccessGroupType.PERSON_OCCUPATION)) {		if (space.getPersonOccupationsAccessGroup() == null) {		    space.setPersonOccupationsAccessGroup(new FixedSetGroup());		}		Set<Person> elements = space.getPersonOccupationsAccessGroup().getElements();		Set<Person> newElements = manageAccessGroup(person, toAdd, elements);		space.setPersonOccupationsAccessGroup(new FixedSetGroup(newElements));	    } else if (accessGroupType.equals(SpaceAccessGroupType.EXTENSION_OCCUPATION)) {		if (space.getExtensionOccupationsAccessGroup() == null) {		    space.setExtensionOccupationsAccessGroup(new FixedSetGroup());		}		Set<Person> elements = space.getExtensionOccupationsAccessGroup().getElements();		Set<Person> newElements = manageAccessGroup(person, toAdd, elements);		space.setExtensionOccupationsAccessGroup(new FixedSetGroup(newElements));	    }	} else {	    throw new FenixServiceException("error.space.access.groups.management.no.person");	}    }