Used to serialize a whole inventory for transfer over the network.
Inheritance: Universe.Framework.Modules.IDataTransferable
        public virtual InventoryCollection GetFolderContent(UUID UserID, UUID folderID)
        {
            object remoteValue = DoRemoteByURL("InventoryServerURI", UserID, folderID);
            if (remoteValue != null || m_doRemoteOnly)
                return (InventoryCollection) remoteValue;

            // This method doesn't receive a valud principal id from the
            // connector. So we disregard the principal and look by ID.
            MainConsole.Instance.DebugFormat("[XINVENTORY SERVICE]: Fetch contents for folder {0}", folderID.ToString());
            InventoryCollection inventory = new InventoryCollection
                                                {
                                                    UserID = UserID,
                                                    FolderID = folderID,
                                                    Folders = m_Database.GetFolders(
                                                        new[] {"parentFolderID"},
                                                        new[] {folderID.ToString()}),
                                                    Items = m_Database.GetItems(UserID,
                                                                                new[] {"parentFolderID"},
                                                                                new[] {folderID.ToString()})
                                                };

            return inventory;
        }
        public virtual InventoryCollection GetFolderContent(UUID userID, UUID folderID)
        {
            if (m_doRemoteOnly) {
                object remoteValue = DoRemoteByURL ("InventoryServerURI", userID, folderID);
                return remoteValue != null ? (InventoryCollection)remoteValue : null;
            }

            // This method doesn't receive a valid principal id from the
            // connector. So we disregard the principal and look
            // by ID.
            //
            MainConsole.Instance.DebugFormat("[Inventory Service]: Fetch contents for folder {0}", folderID);
            InventoryCollection inventory = new InventoryCollection ();
            inventory.UserID = userID;
            inventory.FolderID = folderID;
            inventory.Folders = m_Database.GetFolders (new [] { "parentFolderID" }, new [] { folderID.ToString()});
            inventory.Items = m_Database.GetItems (userID, new [] { "parentFolderID" }, new [] { folderID.ToString()});

            return inventory;
        }