try { myItem.update();  filtered = true; } catch (Exception e) { System.out.println("ERROR filtering, skipping bitstream #" + myBitstream.getID() + " " + e); e.printStackTrace(); }
System.out.println("ERROR filtering, skipping bitstream #" + myBitstream.getID() + " " + e); e.printStackTrace();
    public static boolean filterBitstream(Context c, Item myItem,            Bitstream myBitstream) throws Exception    {    	boolean filtered = false;    	    	// iterate through filter classes. A single format may be actioned    	// by more than one filter    	for (int i = 0; i < filterClasses.length; i++)    	{    		List fmts = (List)filterFormats.get(filterClasses[i].getClass().getName());    		if (fmts.contains(myBitstream.getFormat().getShortDescription()))    		{                // only update item if bitstream not skipped                if (filterClasses[i].processBitstream(c, myItem, myBitstream))                {                	try                	{                		myItem.update(); // Make sure new bitstream has a sequence                                     	// number                		filtered = true;                	}                    catch (Exception e)                    {                        System.out.println("ERROR filtering, skipping bitstream #"                                + myBitstream.getID() + " " + e);                        e.printStackTrace();                    }                }    		}    	}        return filtered;    }