code: public HTableDescriptor adapt(Table table) {
      HTableDescriptor tableDescriptor = new HTableDescriptor(TableName.valueOf(table.getId()));
      for(ColumnFamily columnFamily : table.getColumnFamilies()){
        tableDescriptor.addFamily(columnDescriptorAdapter.adapt(columnFamily));
      }
      return tableDescriptor;
    }
docs: <p>adapt.</p>
  
  @param table a {@link Table} object.
  @return a {@link HTableDescriptor} object.