private boolean checkIfCanConnect(ClassSubInstance instance) {
		ModelInstance meta_model = ModelInstance.getInstance();
		if(state == ConnectorState.FIRST_CLICK) {
			for(AssociationInstance assoc : meta_model.instanced_assocs.values()) {
				if(assoc.source_id == instance.meta.id)
					return true;
			}
		}
		else {
			for(AssociationInstance assoc : meta_model.instanced_assocs.values()) {
				if(assoc.source_id == last_clicked_class.meta.id && assoc.target_id == instance.meta.id) {
					current_assoc = assoc;
					return true;
				}
			}
		}
		return false;
	}