String directoryFilter = page.getDirectoryFilter();
String packageFilter = page.getPackageFilter();
// TODO(leeca): Extend UI to allow lists of packages.
Collection<String> packageWhitelist = splitFilter(packageFilter);
ElementFilter filter = new DefaultElementFilter(packageWhitelist);
GraphModel resultGraph = new GraphModel();
DependenciesListener builder =
new DependenciesDispatcher(filter, resultGraph.getBuilder());