final SearchFilter searchFilter2 = new SearchFilter.IsEqualTo(FolderSchema.DisplayName, "allitems");
final SearchFilter.SearchFilterCollection searchFilterCollection = new SearchFilter.SearchFilterCollection(LogicalOperator.And);
searchFilterCollection.add(searchFilter1);
searchFilterCollection.add(searchFilter2);
final FindFoldersResults findFoldersResults = service.findFolders(
rootFolderId, searchFilterCollection, folderView);
if (findFoldersResults.getFolders().size() == 0) {
return null;
}
return findFoldersResults.getFolders().iterator().next();
}