code: protected static void adapt(HTableDescriptor desc, CreateTableRequest request) {
      if(request != null) {
        for (HColumnDescriptor column : desc.getColumnFamilies()) {
          String columnName = column.getNameAsString();
          request.addFamily(columnName, buildGarbageCollectionRule(column));
        }
      }
    }
docs: <p>adapt.</p>
  
  This method adapts ColumnFamily to CreateTableRequest.
  
  @param desc a {@link HTableDescriptor} object.
  @param  request a {@link CreateTableRequest}