code: @Override
    public Boolean call() throws Exception {
  
      ProcessRecord updatedRecord = null;
      Connection hbaseConnection = null;
      try {
        hbaseConnection = ConnectionFactory.createConnection(hbaseConf);
        // Connect only when needed.
        ProcessRecordService processRecordService =
            new ProcessRecordService(hbaseConf, hbaseConnection);
  
        updatedRecord =
            processRecordService.setProcessState(processRecord, newState);
      } finally {
        if (hbaseConnection != null) {
          hbaseConnection.close();
        }
      }
  
      if ((updatedRecord != null)
          && (updatedRecord.getProcessState() == newState)) {
        return true;
      }
      return false;
    }
docs: /*
  (non-Javadoc)
  
  @see java.util.concurrent.Callable#call()