code: public static Collection map(Mapper mapper, Enumeration en, boolean allowNull) {
          ArrayList l = new ArrayList();
          while (en.hasMoreElements()) {
              Object o = mapper.map(en.nextElement());
              if (allowNull || o != null) {
                  l.add(o);
              }
          }
          return l;
      }
docs: Return the results of mapping all objects with the mapper.
  
  @param mapper an Mapper
  @param en an     Enumeration
  @param allowNull allow null values
  
  @return a Collection of the results.