public void addLicense(Context context, Collection collection, String license)
public void addLicense(Context context, Collection collection, Item item, MetsManifest manifest, AbstractMetsSubmission.MdrefManager callback, String license)
    public void addLicense(Context context, Collection collection, String license)        throws PackageValidationException, CrosswalkException,               AuthorizeException, SQLException, IOException    {        PackageUtils.addDepositLicense(context, license, item, collection);        // If package includes a Creative Commons license, add that:        Element rmds[] = manifest.getItemRightsMD();        for (int i = 0; i < rmds.length; ++i)        {            String type = manifest.getMdType(rmds[i]);            if (type != null && type.equals("Creative Commons"))            {                log.debug("Got Creative Commons license in rightsMD");                CreativeCommons.setLicense(context, item,                            manifest.getMdContentAsStream(rmds[i], this),                            manifest.getMdContentMimeType(rmds[i]));                // if there was a bitstream, get rid of it, since                // it's just an artifact now that the CC license is installed.                Element mdRef = rmds[i].getChild("mdRef", MetsManifest.metsNS);                if (mdRef != null)                {                    Bitstream bs = getBitstreamForMdRef(mdRef);                    if (bs != null)                    {                        Bundle parent[] = bs.getBundles();                        if (parent.length > 0)                        {                            parent[0].removeBitstream(bs);                            parent[0].update();                        }                    }                }            }        }    }