docs: public boolean containsFlowState(final Flow flow, final String stateId) {
          if (flow == null) {
              LOGGER.error("Flow is not configured correctly and cannot be null.");
              return false;
          }
          return flow.containsState(stateId);
      }