code: public static DatabaseSizes getCatalogSizes(Database dbCatalog, boolean isXDCR) {
          DatabaseSizes dbSizes = new DatabaseSizes();
          for (Table table: dbCatalog.getTables()) {
              dbSizes.addTable(getTableSize(table, isXDCR));
          }
          return dbSizes;
      }
docs: Produce a sizing of all significant database objects.
  @param dbCatalog  database catalog
  @param isXDCR Is XDCR enabled
  @return  database size result object tree