services.add(component.createJbiEndpointFromCamel(endpoint));
}
}
// lets add a control bus endpoint to ensure we have at least one endpoint to deploy
BeanComponent beanComponent = camelContext.getComponent("bean", BeanComponent.class);
Endpoint endpoint = beanComponent.createEndpoint(new CamelControlBus(camelContext), "camel:controlBus");
services.add(component.createJbiEndpointFromCamel(endpoint));
return services;
} catch (Exception e) {
throw new RuntimeException(e);