Hbase CopyTable inside Java

I want to copy one Hbase table to another location with good performance. I would like to reuse the code from CopyTable.java from Hbase-server github page I’ve been looking the doccumentation from …