int eeCount = in.readInt(); if (eeCount > 0) { String[] ee = new String[eeCount]; for (int i = 0; i < ee.length; i++) ee[i] = readString(in, false); result.setExecutionEnvironments(ee); }
	private BundleDescriptionImpl readBundleDescriptionLazyData(DataInputStream in, int skip) throws IOException {		if (skip > 0)			in.skipBytes(skip);		int index = in.readInt();		BundleDescriptionImpl result = (BundleDescriptionImpl) getFromObjectTable(index);		if (result.isFullyLoaded()) {			in.skipBytes(result.getLazyDataSize() - 4); // skip to the end subtract 4 for the int read already			return result;		}		result.setLocation(readString(in, false));		result.setPlatformFilter(readString(in, false));		int exportCount = in.readInt();		if (exportCount > 0) {			ExportPackageDescription[] exports = new ExportPackageDescription[exportCount];			for (int i = 0; i < exports.length; i++)				exports[i] = readExportPackageDesc(in);			result.setExportPackages(exports);		}		int importCount = in.readInt();		if (importCount > 0) {			ImportPackageSpecification[] imports = new ImportPackageSpecification[importCount];			for (int i = 0; i < imports.length; i++)				imports[i] = readImportPackageSpec(in);			result.setImportPackages(imports);		}		int requiredBundleCount = in.readInt();		if (requiredBundleCount > 0) {			BundleSpecification[] requiredBundles = new BundleSpecification[requiredBundleCount];			for (int i = 0; i < requiredBundles.length; i++)				requiredBundles[i] = readBundleSpec(in);			result.setRequiredBundles(requiredBundles);		}		int selectedCount = in.readInt();		if (selectedCount > 0) {			ExportPackageDescription[] selected = new ExportPackageDescription[selectedCount];			for (int i = 0; i < selected.length; i++)				selected[i] = readExportPackageDesc(in);			result.setSelectedExports(selected);		}		int resolvedCount = in.readInt();		if (resolvedCount > 0) {			ExportPackageDescription[] resolved = new ExportPackageDescription[resolvedCount];			for (int i = 0; i < resolved.length; i++)				resolved[i] = readExportPackageDesc(in);			result.setResolvedImports(resolved);		}		int resolvedRequiredCount = in.readInt();		if (resolvedRequiredCount > 0) {			BundleDescription[] resolved = new BundleDescription[resolvedRequiredCount];			for (int i = 0; i < resolved.length; i++)				resolved[i] = readBundleDescription(in);			result.setResolvedRequires(resolved);		}		result.setFullyLoaded(true); // set fully loaded before setting the dependencies		// No need to add bundle dependencies for hosts, imports or requires;		// This is done by readBundleDescription		return result;	}