private void searchForAssocs(ClassSubInstance c, ModelSubInstance m) throws RestrictionException{
		Iterator<Map.Entry<Integer, AssociationSubInstance>> it = m.assocs.entrySet().iterator();
		boolean found_source = false;
		boolean found_target = false;
		while(it.hasNext()) {
			AssociationSubInstance a = it.next().getValue();
			if(a.source.equals(c))
				found_source = true;
			if(a.target.equals(c))
				found_target = true;
			
			if(found_source && found_target)
				return;
		}
		if(!found_source)
			throw new RestrictionException("SubFeature group " + c.meta.instance_name + " needs to be a subfeature of a feature!");
		if(!found_target)
			throw new RestrictionException("SubFeature group " + c.meta.instance_name + " needs to have features belong to it!");
	}