Rewrite of XML editor based on latest CodeMirror and PrimeFaces