SagaMethodMessageHandlerInspector.getInstance((Class<? extends AbstractAnnotatedSaga>) sagaType,
parameterResolverFactory);
final List<SagaMethodMessageHandler> handlers = inspector.getMessageHandlers(event);
for (SagaMethodMessageHandler handler : handlers) {
if (handler.getCreationPolicy() != SagaCreationPolicy.NONE) {
return new SagaInitializationPolicy(handler.getCreationPolicy(), handler.getAssociationValue(event));
}
}
return SagaInitializationPolicy.NONE;
}