code: public static void setWorkUnitGuid(State state, Guid guid) {
      state.setProp(WORK_UNIT_GUID, guid.toString());
    }
docs: Set a unique, replicable guid for this work unit. Used for recovering partially successful work units.
  @param state {@link State} where guid should be written.
  @param guid A byte array guid.