// of course we have to check for multiplexers later, so that we can apply
// the mutiplex-attributes.
// and finally try the generic handler matches ...
if (this.classToHandlerMapping.isGenericHandler(classToWrite)) {
return new GenericWriteHandler(
this.classToHandlerMapping.getFactoryForClass(classToWrite)
);
}
if (getFactoryLoader().isGenericHandler(classToWrite)) {
return new GenericWriteHandler(getFactoryLoader().getFactoryForClass(classToWrite));
}
throw new XMLWriterException("Unable to handle " + classToWrite);
}