Bundle [] bundles = item.getBundles();
Bundle [] bundles = item.getBundles("ORIGINAL");
    private void processUploadBitstream(Context context,        HttpServletRequest request,        HttpServletResponse response)        throws ServletException, IOException, SQLException, AuthorizeException    {        // Wrap multipart request to get the submission info	FileUploadRequest wrapper = new FileUploadRequest(request);        Bitstream b = null;                Item item = Item.find(context,            UIUtil.getIntParameter(wrapper, "item_id"));        File temp = wrapper.getFile("file");        // Read the temp file as logo        InputStream is = new BufferedInputStream(new FileInputStream(            temp));        // now check to see if person can edit item        checkEditAuthorization(context, item);        // do we already have a bundle?            Bundle [] bundles = item.getBundles();                          if( bundles.length < 1)        {            // set bundle's name to ORIGINAL                b = item.createSingleBitstream(is, "ORIGINAL");        }        else        {            // we have a bundle already, just add bitstream            b = bundles[0].createBitstream(is);        }        // Strip all but the last filename.  It would be nice        // to know which OS the file came from.        String noPath = wrapper.getFilesystemName("file");        while (noPath.indexOf('/') > -1)        {            noPath = noPath.substring(                        noPath.indexOf('/') + 1);        }        while (noPath.indexOf('\\') > -1)        {            noPath = noPath.substring(                        noPath.indexOf('\\') + 1);        }        b.setName(noPath);        b.setSource(wrapper.getFilesystemName("file"));        // Identify the format        BitstreamFormat bf = FormatIdentifier.guessFormat(context, b);        b.setFormat(bf);        b.update();        item.update();        // Back to edit form        showEditForm(context, request, response, item);		// Remove temp file		temp.delete();        // Update DB        context.complete();    }