// camel-spring is missing on the classpath
throw new RuntimeCamelException("Cannot create a transacted policy as camel-spring.jar is not on the classpath!");
}
} else {
if (maps.isEmpty()) {
throw new NoSuchBeanException(null, "PlatformTransactionManager");
} else {
throw new IllegalArgumentException("Found " + maps.size() + " PlatformTransactionManager in registry. "
+ "Cannot determine which one to use. Please configure a TransactionTemplate on the transacted policy.");
}
}