removeChildNodes(parent); AssetManager.refreshAsset(parent, "", loc, -1);
if (loc != 0 || parent.getChildCount() == 0) { removeChildNodes(parent); AssetManager.refreshAsset(parent, "", loc, -1); }
	private MatrixTreeNode findAssetUnderParent(MatrixTreeNode parent, String assetid, boolean incChildren) {		try {			boolean found = false;			int childCount = 0;			int loc = 0;			while (!found) {				removeChildNodes(parent);				AssetManager.refreshAsset(parent, "", loc, -1);				childCount = parent.getChildCount();				if (childCount > 0) {					for (Enumeration children = parent.children(); children.hasMoreElements();) {						MatrixTreeNode nextNode = (MatrixTreeNode) children.nextElement();						if (nextNode.getAsset().getId().equals(assetid)) {							return nextNode;						} else if (incChildren) {							// look under this node							nextNode = findAssetUnderParent(nextNode, assetid, true);							if (nextNode != null) {								return nextNode;							}						}					}				} else {					// not found					return null;				}				if (childCount >= AssetManager.getLimit()) {					// look at the next set of assets					loc += AssetManager.getLimit();				} else {					return null;				}			}		} catch (IOException ex) { }		return null;	}