code: public <T> Iterator<T> getBshIterator(final Enumeration<T> obj) {
          return Collections.list(obj).iterator();
      }
docs: Gets iterator for enumerated elements.
  @param obj the enumerated elements
  @return the bsh iterator