if (myStoredProcedures != null) { Iterator oldStoredProceduresIter = myStoredProcedures.iterator(); while (oldStoredProceduresIter.hasNext()) { EOStoredProcedure storedProcedure = (EOStoredProcedure) oldStoredProceduresIter.next(); storedProcedure.removePropertyChangeListener(myStoredProcedureListener); } }
  protected void removePropertyChangeListeners() {    if (myModel != null) {      myModel.removePropertyChangeListener(myModelListener);      if (myEntities != null) {        Iterator oldEntitiesIter = myEntities.iterator();        while (oldEntitiesIter.hasNext()) {          EOEntity entity = (EOEntity) oldEntitiesIter.next();          entity.removePropertyChangeListener(myEntityListener);        }      }    }  }