Map<String,NameValueMap<String, String>> map = ManifestHeaderProcessor.parseImportString(symbolicName);
//This should have one entry, which is keyed on the symbolicName
if(map.size() != 1) {
InvalidAttributeException iax = new InvalidAttributeException (MessageUtil.getMessage(
"TOO_MANY_SYM_NAMES", new Object[] {symbolicName}));
logger.debug(LOG_EXIT, "ExportedBundleImpl", iax);
throw iax;
}
Map.Entry<String, NameValueMap<String, String>> entry = map.entrySet().iterator().next();
symbolicName = entry.getKey();
Map<String, String> bundleAttrs = entry.getValue();
String displayName = attrs.getValue(Constants.BUNDLE_NAME);
String version = attrs.getValue(Constants.BUNDLE_VERSION);
if (version == null) {
version = Version.emptyVersion.toString();
}
String bmVersion = attrs.getValue(Constants.BUNDLE_MANIFESTVERSION);
if (symbolicName == null || bmVersion == null) {
InvalidAttributeException iax = new InvalidAttributeException(MessageUtil.getMessage("INCORRECT_MANDATORY_HEADERS",
new Object[] {symbolicName, bmVersion}));
logger.debug(LOG_EXIT, "ExportedBundleImpl", iax);
throw iax;
}