format("Cannot initialize repository '%s'. "
+ "The bean with name '%s' does not extend from EventSourcingAggregateRoot.",
beanName, prototypeBeanName));
}
if (parameterResolverFactory == null) {
final SpringBeanParameterResolverFactory springBeanParameterResolverFactory = new SpringBeanParameterResolverFactory();
springBeanParameterResolverFactory.setApplicationContext(applicationContext);
this.parameterResolverFactory = MultiParameterResolverFactory.ordered(
ClasspathParameterResolverFactory.forClass(aggregateType),
springBeanParameterResolverFactory);
}
}