docs: @SuppressWarnings("unchecked")
      public String[] getAttributeNames() {
  
          List<String> names = new ArrayList<String>();
          Enumeration<String> keys = attributes.keys();
          while (keys.hasMoreElements()) {
              names.add((String) keys.nextElement());
          }
          String results[] = new String[names.size()];
          for (int i = 0; i < results.length; i++) {
              results[i] = (String) names.get(i);
          }
          return (results);
  
      }