Map<String, Map<String, String>> exportPackageMap =
OSGiHeader.parseHeader(exportPackage);
for (Map.Entry<String, Map<String, String>> entry :
exportPackageMap.entrySet()) {
String javaPackage = entry.getKey();
<BUG>Map<String, String> javaPackageMap = entry.getValue();
if (javaPackageMap.containsKey("version")) {
String version = javaPackageMap.get("version");
javaPackage = javaPackage.concat(
";version=\"").concat(version).concat("\"");</BUG>
}

Map<String, Map<String, String>> exportPackageMap =
OSGiHeader.parseHeader(exportPackage);
for (Map.Entry<String, Map<String, String>> entry :
exportPackageMap.entrySet()) {
String javaPackage = entry.getKey();
Map<String, String> javaPackageMap = entry.getValue();
StringBundler sb = new StringBundler(4);
sb.append(javaPackage);
sb.append(";version=\"");
if (javaPackageMap.containsKey("version")) {
String version = javaPackageMap.get("version");
sb.append(version);
}
