IEditorFacade<?> ef = (IEditorFacade<?>) getBean(bf, CommonContextHelper.BEAN_EDITOR_FACADE, "EditorFacade"); CountingIterator<CatalogObjectMeta> it = cf.findObjects(new MatchCriteria().until(cleanBefore).tags(tag)); int elementsToClean=0; while (it.hasNext()) {