class DefaultToolchainsWriter implements ToolchainsWriter {

    @Override
    public void write(Writer output, Map<String, Object> options, PersistedToolchains toolchains) throws IOException {<FILL_FUNCTION_BODY>}
}

        Objects.requireNonNull(output, "output cannot be null");
        Objects.requireNonNull(toolchains, "toolchains cannot be null");

        try (Writer out = output) {
            new MavenToolchainsStaxWriter().write(out, toolchains.getDelegate());
        } catch (XMLStreamException e) {
            throw new IOException("Error writing toolchains", e);
        }
    
<no_super_class>