factoryBean.setEndpointName(CxfEndpointUtils.getQName(getPortName()));
}
// apply feature here
if (getDataFormat() == DataFormat.MESSAGE) {
factoryBean.getFeatures().add(new MessageDataFormatFeature());
} else if (getDataFormat() == DataFormat.PAYLOAD) {
factoryBean.getFeatures().add(new PayLoadDataFormatFeature());
}
factoryBean.setBus(getBus());