public void setText(final String text, final boolean format) {
        if (text == null) {
            getView().setText("");
        } else {
            if (format) {
                final String formatted = new XmlFormatter().format(text);
                getView().setText(formatted, true);
            } else {
                getView().setText(text);
            }
        }
    }
Replaces the editor with some html showing the errorText and its title
stroom-core-client-widget/src/main/java/stroom/editor/client/presenter/EditorPresenter.java