/**
  * Puts the specified HTable back into the pool.
  *
  * <p>If the pool already contains <i>maxSize</i> references to the table, then the table instance
  * gets closed after flushing buffered edits.
  *
  * @param table table
  */
 private void returnTable(HTableInterface table) throws IOException {
   // this is the old putTable method renamed and made private
   String tableName = Bytes.toString(table.getTableName());
   if (tables.size(tableName) >= maxSize) {
     // release table instance since we're not reusing it
     this.tables.remove(tableName, table);
     this.tableFactory.releaseHTableInterface(table);
     return;
   }
   tables.put(tableName, table);
 }
 @Override
 public byte[] getTableName() {
   return table.getTableName();
 }