removeBundle(buns[i]); }
if (removethisbundle) { removeBundle(buns[i]); } }
    public void removeLicenses()        throws SQLException, IOException, AuthorizeException    {        // Find the License format        BitstreamFormat bf = BitstreamFormat.findByShortDescription(            ourContext, "License");        int licensetype = bf.getID();        // search through bundles, looking for bitstream type license        Bundle[] buns = getBundles();                for(int i = 0; i < buns.length; i++)        {            boolean removethisbundle = false;                        Bitstream [] bits = buns[i].getBitstreams();                        for(int j=0; j<bits.length; j++)            {                BitstreamFormat bft = bits[j].getFormat();                if(bft.getID() == licensetype)                {                    removethisbundle = true;                }            }            // probably serious troubles with Authorizations            // fix by telling system not to check authorization?                        removeBundle(buns[i]);        }        }