System.out.println("Adding: "+f.toString());
        protected QueryOperation getLocalFolderOperation(Mailbox mbox) {            try {                Folder root = mbox.getFolderById(null, Mailbox.ID_FOLDER_ROOT);                List<Folder> allFolders = root.getSubfolderHierarchy();                Folder trash = mbox.getFolderById(null, Mailbox.ID_FOLDER_TRASH);                List<Folder> trashFolders = trash.getSubfolderHierarchy();                allFolders.remove(trash);                for (Folder f : trashFolders) {                    allFolders.remove(f);                }                Folder spam = mbox.getFolderById(null, Mailbox.ID_FOLDER_SPAM);                allFolders.remove(spam);                if (allFolders.size() == 0) {                    return new NullQueryOperation();                } else {                    UnionQueryOperation outer = new UnionQueryOperation();                    for (Folder f : allFolders) {                        if (!(f instanceof Mountpoint) && !(f instanceof SearchFolder)) {                            System.out.println("Adding: "+f.toString());                            DBQueryOperation dbop = new DBQueryOperation();                            outer.add(dbop);                            dbop.addInClause(f, true);                        }                    }                    return outer;                }            } catch (ServiceException e) {                return new NullQueryOperation();            }        }