result.setResolution(in.readInt());  int attrCount = in.readInt(); if (attrCount > 0) { HashMap attributes = new HashMap(attrCount); for (int i = 0; i < attrCount; i++) attributes.put(readString(in, false), readString(in, false)); result.setAttributes(attributes); }
result.setAttributes(readMap(in)); result.setDirectives(readMap(in));
	private ImportPackageSpecificationImpl readImportPackageSpec(DataInputStream in) throws IOException {		ImportPackageSpecificationImpl result = new ImportPackageSpecificationImpl();		readVersionConstraint(result, in);		result.setSupplier(readExportPackageDesc(in));		result.setBundleSymbolicName(readString(in, false));		result.setBundleVersionRange(readVersionRange(in));		result.setResolution(in.readInt());		int attrCount = in.readInt();		if (attrCount > 0) {			HashMap attributes = new HashMap(attrCount);			for (int i = 0; i < attrCount; i++)				attributes.put(readString(in, false), readString(in, false));			result.setAttributes(attributes);		}		return result;	}