code: private StateRepresentation<TState, TTrigger> getOrCreateRepresentation(TState state) {
          StateRepresentation<TState, TTrigger> result = stateConfiguration.get(state);
          if (result == null) {
              result = new StateRepresentation<>(state);
              stateConfiguration.put(state, result);
          }
  
          return result;
      }
docs: Return StateRepresentation for the specified state. Creates representation if it does not exist.
  
  @param state The state
  @return StateRepresentation for the specified state.