code: public HalResource addState(ObjectNode state) {
      state.fields().forEachRemaining(entry -> model.set(entry.getKey(), entry.getValue()));
      return this;
    }
docs: Adds state to the resource.
  @param state Resource state
  @return HAL resource