code: @Override
      @SuppressWarnings("unchecked")
      public Collection<SagaType> load(final Class messageClass) throws Exception {
          Iterable<Class<?>> matchingTypes = allMessageTypes(messageClass);
          Collection<SagaType> matchingSagas = findAllSagas(matchingTypes);
  
          Collection<SagaType> resultList;
          if (matchingSagas.isEmpty()) {
              resultList = Collections.EMPTY_LIST;
          } else {
              resultList = sortAccordingToPreference(matchingSagas);
          }
  
          return resultList;
      }
docs: {@inheritDoc}