public ManifestBuilder addIdentityRequirement(String symbolicName, VersionRange version, Map<String, String> atts, Map<String, String> dirs) { StringBuffer buffer = new StringBuffer(symbolicName); if (version != null) { buffer.append(";version=\"" + version + "\""); } if (atts != null) { for (Entry<String, String> entry : atts.entrySet()) { buffer.append(";" + entry.getKey() + "=\"" + entry.getValue() + "\""); } } if (dirs != null) { for (Entry<String, String> entry : dirs.entrySet()) { buffer.append(";" + entry.getKey() + ":=\"" + entry.getValue() + "\""); } } addEntry(identityRequirements, buffer.toString()); return this; }