super.startElement(namespace, localName, prefix, attributes, context);
if (getValue() instanceof DataHandler) {
try {
DataHandler dh = (DataHandler) getValue();
MimeMultipart mmp = new MimeMultipart(dh.getDataSource());
if (mmp.getCount() == 0) {
mmp = null;
}
setValue(mmp);
}
catch (Exception e) {
throw new SAXException(e);
}
}