code: public void addImportedPackages(String... importedPackages) {
  		String oldBundles = mainAttributes.get(IMPORT_PACKAGE);
  		if (oldBundles == null)
  			oldBundles = "";
  		BundleList oldResultList = BundleList.fromInput(oldBundles, newline);
  		BundleList resultList = BundleList.fromInput(oldBundles, newline);
  		for (String bundle : importedPackages)
  			resultList.mergeInto(Bundle.fromInput(bundle));
  		String result = resultList.toString();
  		boolean changed = !oldResultList.toString().equals(result);
  		modified |= changed;
  		if (changed)
  			mainAttributes.put(IMPORT_PACKAGE, result);
  	}
docs: Add the list with given bundles to the "Import-Package" main attribute.
  
  @param importedPackages The list of all packages to add.