@Override
protected DataFormat createDataFormat(RouteContext routeContext) {
if ("json".equals(this.driver)) {
setProperty(this, "dataFormatName", "json-xstream");
}
DataFormat answer = super.createDataFormat(routeContext);
// need to lookup the reference for the xstreamDriver
if (ObjectHelper.isNotEmpty(driverRef)) {
setProperty(answer, "xstreamDriver", CamelContextHelper.mandatoryLookup(routeContext.getCamelContext(), driverRef));
}
return answer;