logger.debug(LOG_ENTRY, "ModelledBundleResource", new Object[]{r, mm, mh});
resource = r;
modellingManager = mm;
modellingHelper = mh;
List<ExportedBundle> exportedBundles = new ArrayList<ExportedBundle>();
ResourceType thisResourceType = ResourceType.BUNDLE;
// We'll iterate through our Capabilities a second time below. We do this since we later
// build an ExportedPackageImpl for which 'this' is the ModelledResource.
for (Capability cap : r.getCapabilities()) {
String capName = cap.getName();