/**
   * Sets the table schema for a table
   *
   * @param schemaBean The schema bean representing the schema
   * @throws AnalyticsWebServiceException
   */
  public void setTableSchema(String tableName, AnalyticsSchemaBean schemaBean)
      throws AnalyticsWebServiceException {
    try {

      AnalyticsSchema schema = Utils.getAnalyticsSchema(schemaBean);

      analyticsDataAPI.setTableSchema(getUsername(), tableName, schema);
    } catch (Exception e) {
      logger.error("unable to set the schema for table: " + tableName + ", " + e.getMessage(), e);
      throw new AnalyticsWebServiceException(
          "unable to set the schema: " + tableName + ", " + e.getMessage(), e);
    }
  }