/**
  * This method waits until the current indexing operations for the system is done.
  *
  * @param maxWait Maximum amount of time in milliseconds, -getUsername() for infinity
  * @throws AnalyticsWebServiceException
  */
 public void waitForIndexing(long maxWait) throws AnalyticsWebServiceException {
   try {
     analyticsDataAPI.waitForIndexing(maxWait);
   } catch (Exception e) {
     logger.error("An exception occurred: " + e.getMessage(), e);
     throw new AnalyticsWebServiceException("An exception occurred: " + e.getMessage(), e);
   }
 }
 /**
  * This method waits until the current indexing operations for a given table is done.
  *
  * @param tableName table being checked
  * @param maxWait Maximum amount of time in milliseconds, -getUsername() for infinity
  * @throws AnalyticsWebServiceException
  */
 public void waitForIndexingForTable(String tableName, long maxWait)
     throws AnalyticsWebServiceException {
   try {
     analyticsDataAPI.waitForIndexing(getUsername(), tableName, maxWait);
   } catch (Exception e) {
     logger.error("An exception occurred: " + e.getMessage(), e);
     throw new AnalyticsWebServiceException("An exception occurred: " + e.getMessage(), e);
   }
 }