throw new IllegalArgumentException("The CxfEndpoint instance is null");
}
// CamelContext
SpringCamelContext context = SpringCamelContext.springCamelContext(endpointBean.getApplicationContext());
// The beanId will be set from endpointBean's property
CxfEndpoint answer = new CxfSpringEndpoint(context, endpointBean);
// check the properties map
if (endpointBean.getProperties() != null) {
Map<String, Object> copy = new HashMap<String, Object>();
copy.putAll(endpointBean.getProperties());
EndpointHelper.setReferenceProperties(context, answer, copy);
EndpointHelper.setProperties(context, answer, copy);
answer.setMtomEnabled(Boolean.valueOf((String)copy.get(Message.MTOM_ENABLED)));
}
return answer;
}