code: public String[] getAttributeNames() {
      String[] result = new String[attributeMap.size()];
      int i = 0;
      // for (String attributeName : attributeMap.keySet()) {
      Iterator it = attributeMap.keySet().iterator();
      while (it.hasNext()) {
        result[i++] = (String) it.next();
      }
      return result;
    }
docs: Returns the names of all the factory's attributes.
  
  @return the attribute names