writer.writeAttribute("onkeydown", "O$.stopEvent(event);", null);
writer.writeAttribute("dir", filter.getDir(), "dir");
writer.writeAttribute("lang", filter.getLang(), "lang");
boolean thereAreEmptyItems = false;
Collection<Object> criterionNamesCollection = filter.calculateAllCriterionNames(context);
for (Iterator<Object> criterionIterator = criterionNamesCollection.iterator(); criterionIterator.hasNext();) {
Object criterionObj = criterionIterator.next();
if (isEmptyItem(criterionObj)) {
thereAreEmptyItems = true;
criterionIterator.remove();