String[] () { final int stackSize = getStackSize(); final String[] names = new String[stackSize]; int i = 0; for (Iterator<SMTestProxy> it = myStack.descendingIterator(); it.hasNext();) { names[i++] = it.next().getName(); } return names; }