code: public TransitionableState getState(final Flow flow, final String stateId) {
          return getState(flow, stateId, TransitionableState.class);
      }
docs: Gets state.
  
  @param flow    the flow
  @param stateId the state id
  @return the state