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