collections.add(new Item(ourContext, r));
collections.add(new Collection(ourContext, r));
    public Collection[] getCollections()        throws SQLException    {        List collections = new ArrayList();        // Get collection table rows        TableRowIterator tri = DatabaseManager.query(ourContext,            "collection",            "SELECT collection.* FROM collection, collection2item WHERE " +                "collection2item.collection_id=collection.collection_id AND " +                "collection2item.item_id=" +                itemRow.getIntColumn("item_id") + ";");        while (tri.hasNext())        {            TableRow r = (TableRow) tri.next();            collections.add(new Item(ourContext, r));        }        Collection[] collectionArray = new Collection[collections.size()];        collectionArray = (Collection[]) collections.toArray(collectionArray);        return collectionArray;    }