}
if (serviceClassName == null && dataFormat == DataFormat.POJO) {
throw new CamelException(new Message("SVC_CLASS_PROP_IS_REQUIRED_X", LOG).toString());
}
AbstractServiceFactoryBean serviceFactory = null;
try {
if (serviceClassName != null) {
Class<?> cls = ClassLoaderUtils.loadClass(serviceClassName, CxfEndpointUtils.class);
boolean isJSR181SEnabled = CxfEndpointUtils.hasWebServiceAnnotation(cls);
serviceFactory = isJSR181SEnabled
? new JaxWsServiceFactoryBean() : new ReflectionServiceFactoryBean();
serviceFactory.setBus(bus);
if (wsdlUrl != null) {
((ReflectionServiceFactoryBean)serviceFactory).setWsdlURL(wsdlUrl);
}
if (serviceQName != null) {
((ReflectionServiceFactoryBean)serviceFactory).setServiceName(serviceQName);