final ModelNode config = ret.get("mod-cluster-config");
XMLExtendedStreamWriter streamWriter = new FormattingXMLStreamWriter( XMLOutputFactory.newInstance().createXMLStreamWriter((new FileOutputStream(file))));
SubsystemMarshallingContext context = new SubsystemMarshallingContext(config, streamWriter);
mapper.deparseDocument(new ModClusterSubsystemXMLWriter(), context, streamWriter);
streamWriter.close();
return ret;
}