ArrayList stems = new ArrayList(size); ArrayList names = new ArrayList(size);
ArrayList stems; if (dynamicImportPackageStems == null) { stems = new ArrayList(size); } else { stems = new ArrayList(size+dynamicImportPackageStems.length); for (int i=0; i<dynamicImportPackageStems.length; i++) { stems.add(dynamicImportPackageStems[i]); } }  ArrayList names; if (dynamicImportPackages == null) { names = new ArrayList(size); } else { names = new ArrayList(size+dynamicImportPackages.length); for (int i=0; i<dynamicImportPackages.length; i++) { names.add(dynamicImportPackages[i]); } }
	protected void initDynamicImportPackage(ManifestElement[] packages) {		if (packages == null && SystemBundleLoader.getSystemPackages() == null)			return;				hasDynamicImports = hasImportedPackages = true;		// make sure importedPackages is not null;		if (importedPackages == null) {			importedPackages = new KeyedHashSet();		}		if (packages == null) 			return;		int size = packages.length;		ArrayList stems = new ArrayList(size);		ArrayList names = new ArrayList(size);		for (int i = 0; i < size; i++) {			String name = packages[i].getValue();			if (name.equals("*")) {    /* shortcut */				dynamicImportPackageAll = true;				return;			}			if (name.endsWith(".*"))				stems.add(name.substring(1, name.length()-1));			else				names.add(name);		}		size = stems.size();		if (size > 0)			dynamicImportPackageStems = (String[]) stems.toArray(new String[size]);		size = names.size();		if (size > 0) 			dynamicImportPackages = (String[]) names.toArray(new String[size]);	}