// Process FilterElement elements
Iterator iterator = session.getFilter().getFilterElements();
while (iterator.hasNext()) {
TrackFilterElement trackFilterElement = (TrackFilterElement) iterator.next();
Element filterElementElement =
document.createElement(SessionElement.FILTER_ELEMENT.getText());
filterElementElement.setAttribute(SessionAttribute.ITEM.getText(),
trackFilterElement.getSelectedItem());
filterElementElement.setAttribute(
SessionAttribute.OPERATOR.getText(),
trackFilterElement.getComparisonOperator().getValue());
filterElementElement.setAttribute(SessionAttribute.VALUE.getText(),
trackFilterElement.getValue());
filterElementElement.setAttribute(
SessionAttribute.BOOLEAN_OPERATOR.getText(),
trackFilterElement.getBooleanOperator().getValue());
filter.appendChild(filterElementElement);
}
}
}