/**
  * This method returns all opposite AssociationEnds of a given Classifier
  *
  * @param classifier the classifier you want to have the opposite association ends for
  * @return a collection of the opposite associationends
  */
 public Collection getAssociateEnds(MClassifier classifier) {
   Collection result = new ArrayList();
   Iterator ascends = classifier.getAssociationEnds().iterator();
   while (ascends.hasNext()) {
     MAssociationEnd ascend = (MAssociationEnd) ascends.next();
     if ((ascend.getOppositeEnd() != null)) result.add(ascend.getOppositeEnd());
   }
   return result;
 }