code: public ProcessRecord setProcessState(ProcessRecord processRecord,
        ProcessState newState) throws IOException {
      Put put = new Put(keyConv.toBytes(processRecord.getKey()));
      put.addColumn(Constants.INFO_FAM_BYTES,
          Constants.PROCESSING_STATE_COLUMN_BYTES,
          Bytes.toBytes(newState.getCode()));
      Table processRecordTable = null;
      try {
        processRecordTable = hbaseConnection
            .getTable(TableName.valueOf(Constants.JOB_FILE_PROCESS_TABLE));
        processRecordTable.put(put);
      } finally {
        if (processRecordTable != null) {
          processRecordTable.close();
        }
      }
  
      ProcessRecord updatedProcessRecord = new ProcessRecord(
          processRecord.getCluster(), newState,
          processRecord.getMinModificationTimeMillis(),
          processRecord.getMaxModificationTimeMillis(),
          processRecord.getProcessedJobFiles(), processRecord.getProcessFile(),
          processRecord.getMinJobId(), processRecord.getMaxJobId());
      return updatedProcessRecord;
    }
docs: Set the process state for a given processRecord.
  
  @param processRecord for which to update the state
  @param newState the new state to set in HBase.
  @return a new ProcessRecord with the new state.
  @throws IOException