accepts.add(accept.getBundleType());
}
bundleConfiguration.addBundleDestinationBaseDirectory(name, valueContext, valueName,
description, accepts);
} else if (destDef instanceof BundleDestinationDefinition) {
BundleDestinationDefinition def = (BundleDestinationDefinition) destDef;
ResourceTypeBundleConfiguration.BundleDestinationDefinition.Builder bld = bundleConfiguration
.createDestinationDefinitionBuilder(def.getName());
bld.withDescription(def.getDescription()).withConnectionString(def.getConnection());
for (BundleDestination.Accepts accept : def.getAccepts()) {
bld.addAcceptedBundleType(accept.getBundleType());
}
for (JAXBElement<?> ref : def.getReferencedConfiguration()
.getMapPropertyRefOrListPropertyRefOrSimplePropertyRef()) {
String tagName = ref.getName().getLocalPart();
if ("simple-property-ref".equals(tagName)) {
BundleConfigPropertyReference r = (BundleConfigPropertyReference) ref.getValue();