it = element.iterator(); Field[] arr = new Field[element.size()]; int i = 0; while (it.hasNext()) { Field tmp = (Field) it.next(); arr[i] = tmp; i++; } return arr;
return element.getFields();
    public Field[] getFields() {        if (isEmpty()) return null;                java.util.Iterator it = iterator();        DataElement element = (DataElement) it.next();                it = element.iterator();        Field[] arr = new Field[element.size()];        int i = 0;        while (it.hasNext()) {            Field tmp = (Field) it.next();            arr[i] = tmp; i++;        }        return arr;    }