public void setBus(Bus bb) {
if (bus == bb) {
return;
}
CXFBusImpl b = (CXFBusImpl)bb;
if (properties != null) {
b.setProperties(properties);
properties = null;
}
if (!getInInterceptors().isEmpty()) {
b.getInInterceptors().addAll(getInInterceptors());
}
if (!getOutInterceptors().isEmpty()) {
b.getOutInterceptors().addAll(getOutInterceptors());
}
if (!getInFaultInterceptors().isEmpty()) {
b.getInFaultInterceptors().addAll(getInFaultInterceptors());
}
if (!getOutFaultInterceptors().isEmpty()) {
b.getOutFaultInterceptors().addAll(getOutFaultInterceptors());
}
if (!StringUtils.isEmpty(id)) {
b.setId(id);
}
if (features != null) {
b.setFeatures(features);
features = null;
}
bus = b;
}