MContextbasedConstraintImpl coCon = (MContextbasedConstraintImpl)dm;
MContextbasedConstraintImpl cocon = (MContextbasedConstraintImpl)dm;   if (cocon.getCoConType()==null) { return NO_PROBLEM; }
  public boolean predicate(Object dm, org.argouml.cognitive.Designer dsgr) {	// this is only for testing purpose, uses hardcoded cocon	//return predicate(cocon);	//check if the given object is a context based constraint	if (!(dm instanceof MContextbasedConstraintImpl)) {	  return NO_PROBLEM;	}	//get ContextBasedConstraint and check if the type is correct	MContextbasedConstraintImpl coCon = (MContextbasedConstraintImpl)dm;	if (cocon.getCoConType().equals(CoConTypes.NOT_THE_SAME_AS_TYPE)) {	  cocon.update();	  Vector targetSet = cocon.getTargetElements();	  Vector scopeSet = cocon.getScopedElements();	  for (int t = 0; t < targetSet.size(); t++) {	if (!scopeSet.contains(targetSet.elementAt(t))) {	  return PROBLEM_FOUND;	}	  }	}	return NO_PROBLEM;  }  