super.startElement(namespace, localName, prefix, attributes, context);
if (getValue() instanceof DataHandler) {
try {
DataHandler dh = (DataHandler) getValue();
InputStream is = dh.getInputStream();
Image image = ImageIOFactory.getImageIO().loadImage(is);
setValue(image);
}
catch (Exception e) {
}
}