return attributes.get(key);
}
public Object put(String key, Object value) {
if (key == null) {
throw new ManifestException("The key of a manifest attribute must not be null.");
}
if (value == null) {
throw new ManifestException(String.format("The value of a manifest attribute must not be null (Key=%s).", key));
}
try {
new java.util.jar.Attributes.Name(key);
} catch (IllegalArgumentException e) {
throw new ManifestException(String.format("The Key=%s violates the Manifest spec!", key));
}
return attributes.put(key, value);
}