if (destDefs != null && destDefs.size() > 0) {
Configuration c = new Configuration();
ResourceTypeBundleConfiguration bundleConfiguration = new ResourceTypeBundleConfiguration(c);
for (BundleDestination destDef : destDefs) {
if (destDef instanceof BundleDestinationBaseDir) {
BundleDestinationBaseDir destBaseDir = (BundleDestinationBaseDir) destDef;
String name = destBaseDir.getName();
String valueContext = destBaseDir.getValueContext();
String valueName = destBaseDir.getValueName();
String description = destBaseDir.getDescription();
List<String> accepts = new ArrayList<String>();
for(BundleDestination.Accepts accept : destBaseDir.getAccepts()) {
accepts.add(accept.getBundleType());
}
bundleConfiguration.addBundleDestinationBaseDirectory(name, valueContext, valueName,
description, accepts);
} else if (destDef instanceof BundleDestinationDefinition) {