* Reports that the type of an object in a property is unexpected.
*/
public static void handleTypeMismatchError( XMLSerializer serializer,
Object parentObject, String fieldName, Object childObject ) throws SAXException {
ValidationEvent ve = new ValidationEventImpl(
ValidationEvent.ERROR, // maybe it should be a fatal error.
Messages.TYPE_MISMATCH.format(
getTypeName(parentObject),
fieldName,
getTypeName(childObject) ),