public void run() throws IOException {
final List<CategoryTreeNode> categories = new ArrayList<CategoryTreeNode>();
for (int i = 0; i < parents.size(); i++) {
CategoryTreeNode parent = parents.get(i);
Category category = parent.getCategory().create(names.get(i));
categories.add(new CategoryTreeNodeImpl(category));
}
invokeLater(new Runnable() {
public void run() {