code: private static Block convertBlock(TBlock tblk) {
      return new Block(tblk.getBlockId(), 
                       tblk.getNumBytes(),
                       tblk.getGenerationStamp());
    }
docs: Converts a TBlock to a Block