/// <exception cref="InventoryException">When <code>folder</code> does not exist in the inventory</exception>
public List<InventoryBase> GetContents(UUID folder) throws InventoryException
{
InventoryNode folderNode;
if ((folderNode = Items.get(folder))==null)
throw new InventoryException("Unknown folder: " + folder);
synchronized (folderNode.getNodes().syncRoot)
{
List<InventoryBase> contents = new ArrayList<InventoryBase>(folderNode.getNodes().size());
for (InventoryNode node : folderNode.getNodes().values())
{