code: public synchronized Iterator<BeanId> getPassivatedStatefulBeanIds(J2EEName homeName) {
          ArrayList<BeanId> beanList = new ArrayList<BeanId>();
  
          for (Enumeration<TimeoutElement> e = ivStatefulBeanList.elements(); e.hasMoreElements();) {
              TimeoutElement elt = e.nextElement();
  
              if (homeName.equals(elt.beanId.getJ2EEName())
                  && (elt.passivated))
                  beanList.add(elt.beanId);
          }
          return (beanList.iterator());
      }
docs: d103404.1