} else if (ProductCategoryInfo.class.isInstance(nodeInfo)) {
ProductCategoryInfo info = (ProductCategoryInfo) nodeInfo;
System.out.println("Get all products in: "
+ info.getCategory().getName() + " catagory.");
node.removeAllChildren();
Product[] products = store.listProducts(info.getCategory()
.getCatId());
for (int i = 0; i < products.length; i++) {
node.add(new DefaultMutableTreeNode(new ProductInfo(
products[i])));