//an XML document containing already a DOCTYPE
marshaller.setMarshalAsDocument(false);
marshaller.setRootElement(name.getLocalPart());
// Marshall the Castor object into the stream (sink)
marshaller.marshal(value);
} catch (MarshalException me) {
log.error(Messages.getMessage("castorMarshalException00"), me);
throw new IOException(Messages.getMessage(
"castorMarshalException00")
+ me.getLocalizedMessage());