Iterator it = attributeMap.entrySet().iterator();
Iterator it = attributeMap.values().iterator();
  public Attribute[] toArray()  {    int index = 0;    Iterator it = attributeMap.entrySet().iterator();    Attribute[] array = new Attribute[size()];    while (it.hasNext())      {        array[index] = (Attribute) it.next();        index++;      }        return array;  }