viewName = DataSourceProvider.getViewName(report);
//System.out.println("viewName="+viewName);
documentFrame.setComboBoxesViewName(viewName);
NodeModel model = null;
PredicatedNodeFilterIterator iterator;
if (viewName == DataSourceProvider.REPORT_VIEW) { // special case to just use project
cache = null;
ArrayList list = new ArrayList();
list.add(project);
iterator = GeneralFilteredIterator.instance(list.iterator());
} else {
model = updateCacheForView(viewName);
if (cache == null){
iterator = GeneralFilteredIterator.instance(model.iterator());
//for (Iterator i=GeneralFilteredIterator.instance(model.iterator());i.hasNext();) System.out.println("Report model iterator: "+i.next());
}else{
iterator = GeneralFilteredIterator.instance(cache.getIterator());
//for (Iterator i=GeneralFilteredIterator.instance(cache.getIterator());i.hasNext();) System.out.println("Report cache iterator: "+i.next());
}