protected static void addDepositLicense(Context context, String license,
public static void addDepositLicense(Context context, String license,
    protected static void addDepositLicense(Context context, String license,                                       Item item, Collection collection)        throws SQLException, IOException, AuthorizeException    {        if (license == null)            license = collection.getLicense();        InputStream lis = new ByteArrayInputStream(license.getBytes());        Bundle lb = item.createBundle(Constants.LICENSE_BUNDLE_NAME);        Bitstream lbs = lb.createBitstream(lis);        lis.close();        BitstreamFormat bf = BitstreamFormat.findByShortDescription(context, "License");        if (bf == null)            bf = FormatIdentifier.guessFormat(context, lbs);        lbs.setFormat(bf);        lbs.setName(Constants.LICENSE_BITSTREAM_NAME);        lbs.setSource(Constants.LICENSE_BITSTREAM_NAME);        lbs.update();    }