@Produces
@Uri("")
public ProducerTemplate createProducerTemplate(InjectionPoint point) {
Annotated annotated = point.getAnnotated();
Uri uri = annotated.getAnnotation(Uri.class);
CamelContext camelContext = getCamelContext(point, uri.context());
ProducerTemplate producerTemplate = camelContext.createProducerTemplate();
ObjectHelper.notNull(uri, "Should be annotated with @Uri");
Endpoint endpoint = CamelContextHelper.getMandatoryEndpoint(camelContext, uri.value());
producerTemplate.setDefaultEndpoint(endpoint);
return producerTemplate;
}