if (items != null) {
for (String item : items) {
try {
long id = Long.parseLong(item);
Bundle b = framework.getBundle(id);
builder.allow("osgi.wiring.bundle", "(osgi.wiring.bundle=" + b.getSymbolicName() + ")");
} catch (NumberFormatException e) {
for (Map.Entry<String, Map<String, String>> parsed: ManifestHeaderProcessor.parseImportString(item).entrySet()) {
String packageName = parsed.getKey();
Map<String, String> attributes = new HashMap<String, String>(parsed.getValue());
attributes.put("osgi.wiring.package", packageName);