code: Map convertToMap() {
          Map ret = new HashMap();
          for (Enumeration e = enumerateKeys(); e.hasMoreElements();) {
              Object key = e.nextElement();
              Object value = getValue(key);
              ret.put(key, value);
          }
          return ret;
      }
docs: Converts to a Map