configFile.begin(); configFile.end();
    private void checkConfigFileGeneration(ConfigGenerator generator, XmlFile configFile,            ConfigFileType type) throws Exception {        Document document = configFile.getDocument();        StringWriter writer = new StringWriter();        document.write(writer);        String actualXml = generator.getFileContent(type);        String expectedXml = writer.getBuffer().toString();        // The XML diff is getting confused by whitespace, so remove it        actualXml = removeTroublesomeWhitespace(actualXml);        expectedXml = removeTroublesomeWhitespace(expectedXml);                assertXMLEqual("Comparing: " + type, expectedXml, actualXml);    }