private CamelContext camelContext;
private final List<RouteBuilder> routes = new ArrayList<>();
private Set<String> routeResources;
private final DeployStats stats = new DeployStats();
private void createCamelContext() throws SilverWareException {
<BUG>@SuppressWarnings("unchecked")
Set<Class<CamelContextFactory>> camelContextFactories = DeploymentScanner.getContextInstance(context).lookupSubtypes(CamelContextFactory.class);
</BUG>
if (camelContextFactories.size() >= 2) {
throw new SilverWareException("More than one CamelContextFactories found.");

private CamelContext camelContext;
private final List<RouteBuilder> routes = new ArrayList<>();
private Set<String> routeResources;
private final DeployStats stats = new DeployStats();
private void createCamelContext() throws SilverWareException {
Set<Class<? extends CamelContextFactory>> camelContextFactories = DeploymentScanner.getContextInstance(context).lookupSubtypes(CamelContextFactory.class);
if (camelContextFactories.size() >= 2) {
throw new SilverWareException("More than one CamelContextFactories found.");
