for (ContentDescriptor contentDescriptor : resourceDescriptor.getContent()) {
resourceType.addPackageType(ContentMetadataParser.parseContentDescriptor(contentDescriptor));
}
Bundle bundle = resourceDescriptor.getBundle();
if (bundle != null) {
String typeName = bundle.getType();
resourceType.setBundleType(new BundleType(typeName, resourceType));
// do NOT parse the target types of bundle type right now so that we don't
// require the plugin writer to order the types herself
}