private static final class cas implements Cmd {
public void execute(final HBaseClient client, String[] args) throws Exception {
ensureArguments(args, 8, 8);
RowLock lock = null;
if (args[1].charAt(0) == 'l') { // locked version of the command
final RowLockRequest rlr = new RowLockRequest(args[2], args[3]);
lock = client.lockRow(rlr).joinUninterruptibly();
LOG.info("Acquired explicit row lock: " + lock);
}
final PutRequest put = lock == null
? new PutRequest(args[2], args[3], args[4], args[5], args[7])