myStoredProcedures = new LinkedList(myModel.getStoredProcedures());  if (myStoredProcedures != null) { Iterator oldStoredProceduresIter = myStoredProcedures.iterator(); while (oldStoredProceduresIter.hasNext()) { EOStoredProcedure storedProcedure = (EOStoredProcedure) oldStoredProceduresIter.next(); storedProcedure.addPropertyChangeListener(myStoredProcedureListener); } }
  protected void addPropertyChangeListeners() {    if (myModel != null) {      myEntities = new LinkedList(myModel.getEntities());      Iterator newEntitiesIter = myEntities.iterator();      while (newEntitiesIter.hasNext()) {        EOEntity entity = (EOEntity) newEntitiesIter.next();        entity.addPropertyChangeListener(myEntityListener);      }      myModel.addPropertyChangeListener(myModelListener);    }  }