// javadoc inherited
public void marshal(Configuration config, OutputStream stream) {
try {
IBindingFactory bfact = BindingDirectory
.getFactory(DefaultConfiguration.class);
IMarshallingContext mctx = bfact.createMarshallingContext();
mctx.setIndent(4, null, ' ');
mctx.marshalDocument(config, "UTF-8", null, stream);
} catch (JiBXException e) {
throw new RuntimeException(
EXCEPTION_LOCALIZER.format("marshal-failure"), e);
}
}