originalDocument = modelForRead.getDocument();
DOMModelImpl copiedModel = (DOMModelImpl) modelManager.createNewInstance(modelForRead);
IDOMDocument copiedDocument = copiedModel.getDocument();
newBean = (IDOMElement) copiedDocument.importNode(existingNode, true);
}
catch (IOException e) {
StatusHandler.log(new Status(IStatus.ERROR, WizardPlugin.PLUGIN_ID, "Failed to create bean node.", e));
}
catch (CoreException e) {