By creating a bus with your own bean configuration file, i.e. using the factory method
you can complement or overwrite the bean definitions that CXF would use by default. In this case
mycxf.xml must be on the classpath, but you can also use a factory method taking a URL that points to your bean configuration file.