Basic authentication in Camel

I need to call a webservice that uses basic authentication. All the solutions and suggestions I could find via google where ether complicated or a lot of work. Until I looked at the CXF manual (http://camel.apache.org/cxf.html). As of version 2.12.3, you can do it by simply adding the username and password to your endpoint in your camel route.

.to("cxf:bean:myCxfEndpoint?username=<username>&password=<password>")