//FIXME: should wire this up using spring, rather than hard coding references to
// particular objects here.
try {
FilterSpecDao reader = new JaxbFilterSpecDao();
FileInputStream in = new FileInputStream(filterFileChooser.getSelectedFile());
filterContext = reader.loadFilter(in);
in.close();
loadFilter();
} catch (JAXBException e) {
JOptionPane.showMessageDialog(this, "There was a problem loading the filter.", "Filter warning", JOptionPane.ERROR_MESSAGE);
} catch (FileNotFoundException e) {