private void writeln(final String type) {
        try {
            // Output content first if we have any.
            if (!content.isEmpty()) {
                String out = NEW_LINE_PATTERN.matcher(content).replaceAll(SPACE);
                output.write(out.getBytes());
                output.write(NEW_LINE.getBytes());
                content.clear();
            }

            output.write(type.getBytes());
            output.write(NEW_LINE.getBytes());
        } catch (IOException e) {
            LOGGER.error(e.getMessage(), e);
        }
    }
@param name the name of the skipped entity. If it is a parameter entity,
            the name will begin with '%', and if it is the external DTD
            subset, it will be the string "[dtd]"
@throws org.xml.sax.SAXException any SAX exception, possibly wrapping another exception
stroom-pipeline/src/main/java/stroom/pipeline/filter/TestSAXEventFilter.java