while (i.hasNext() && processed <= max2Process)
while (i.hasNext() && processed < max2Process)
    public static void applyFiltersCollection(Context c, Collection collection)                                              throws Exception    {        ItemIterator i = collection.getItems();        while (i.hasNext() && processed <= max2Process)        {        	applyFiltersItem(c, i.next());        }    }