Return something even if no characters were found.
try {
MessageElement msgElem = context.getCurElement();
if (msgElem != null) {
// Unmarshall the nested XML element into a castor object of type 'javaType'
value = Unmarshaller.unmarshal(javaType, msgElem.getAsDOM());
}
} catch (MarshalException me) {
log.error(Messages.getMessage("castorMarshalException00"), me);
throw new SAXException(Messages.getMessage("castorMarshalException00")
+ me.getLocalizedMessage());
} catch (ValidationException ve) {
log.error(Messages.getMessage("castorValidationException00"), ve);
throw new SAXException(Messages.getMessage("castorValidationException00")
+ ve.getLocation() + ": " + ve.getLocalizedMessage());
} catch (Exception exp) {
log.error(Messages.getMessage("exception00"), exp);
throw new SAXException(exp);
}