if ( config.getMappingInfo() != null &&
config.getMappingInfo().getDatabindingMode() != null)
return config.getMappingInfo().getDatabindingMode();
if ( config.getFeatures() != null) for (WebServiceFeature f : config.getFeatures()) {
if (f instanceof DatabindingModeFeature) {
DatabindingModeFeature dmf = (DatabindingModeFeature) f;
config.properties().putAll(dmf.getProperties());
return dmf.getMode();
}
}
return null;
}