try {
Utils.checkTableDoesNotExist(instance, newTableName, tableId, TableOperation.RENAME);
final String tap = ZooUtil.getRoot(instance) + Constants.ZTABLES + "/" + tableId + Constants.ZTABLE_NAME;
zoo.mutate(tap, null, null, new Mutator() {
public byte[] mutate(byte[] current) throws Exception {
final String currentName = new String(current, Constants.UTF8);
if (currentName.equals(newTableName))
return null; // assume in this case the operation is running again, so we are done
if (!currentName.equals(oldTableName)) {