* but I guess it's better to throw an exception because something
* with the application's code is probably wrong.
*/
if (attribute == null) {
attribute = new Attribute((ASN1ObjectIdentifier) CONTENT_TYPE
.clone(), (ASN1ObjectIdentifier) oid.clone());
attributes.add(attribute);
} else if (attribute.valueCount() < 1) {
throw new InvalidAttributeException(
"Content type attribute has no value!");