public static final Set<ClientCatalogItem> getClientCatalog(User user) throws SearchLibException {
   File[] files =
       StartStopListener.OPENSEARCHSERVER_DATA_FILE.listFiles(
           (FileFilter) DirectoryFileFilter.DIRECTORY);
   Set<ClientCatalogItem> set = new TreeSet<ClientCatalogItem>();
   if (files == null) return null;
   for (File file : files) {
     if (!file.isDirectory()) continue;
     String indexName = file.getName();
     if (!isValidIndexName(indexName)) continue;
     if (user == null || user.hasAnyRole(indexName, Role.GROUP_INDEX))
       set.add(new ClientCatalogItem(indexName));
   }
   return set;
 }
 private static final File getTrashReceiveDir(Client client) {
   File clientDir = client.getDirectory();
   return new File(clientDir.getParentFile(), "._" + clientDir.getName());
 }