Document currentNode = getNode();
try {
copyObject();
saveEditorToObject();
getNode().setParent(null);
Textarea textarea = new Textarea();
textarea.setVflex("1");
textarea.setHflex("1");
textarea.setValue(getObject().getText());
Window window = new Window(getObject().getPath());
window.setHeight("75%");
window.appendChild(textarea);
window.doModal();
getRoot().appendChild(window);