@Override
public void documentUpdated() {
if (!updating) {
updating = true;
final DocumentContent rawDocumentContent = getDocument().getDocumentContent(EditorDocument.Format.RAW);
final String contentType = rawDocumentContent.getContentType();
if (rawDocumentContent.getContentAsString() == null) {
editArea.setText("");
editArea.setEnabled(false);
} else if (seemsToBeJsonContentType(contentType) && readOnly) {
editArea.setText("The content you are trying to view cannot be viewed as XML");
editArea.setEnabled(false);