/**
  * Called to load property value from specified XML subtree. If succesfully loaded, the value
  * should be available via the getValue method. An IOException should be thrown when the value
  * cannot be restored from the specified XML element
  *
  * @param element the XML DOM element representing a subtree of XML from which the value should be
  *     loaded
  * @exception IOException thrown when the value cannot be restored from the specified XML element
  */
 public void readFromXML(org.w3c.dom.Node element) throws java.io.IOException {
   if (!XML_CURSOR.equals(element.getNodeName())) {
     throw new java.io.IOException();
   }
   org.w3c.dom.NamedNodeMap attributes = element.getAttributes();
   try {
     String id = attributes.getNamedItem(ATTR_ID).getNodeValue();
     setAsText(id);
   } catch (NullPointerException e) {
     throw new java.io.IOException();
   }
 }
  protected void initFromNode(org.w3c.dom.Node doc, int options) throws Schema2BeansException {
    if (doc == null) {
      doc = GraphManager.createRootElementNode("deployment-plan"); // NOI18N
      if (doc == null)
        throw new Schema2BeansException(
            Common.getMessage("CantCreateDOMRoot_msg", "deployment-plan"));
    }
    Node n = GraphManager.getElementNode("deployment-plan", doc); // NOI18N
    if (n == null)
      throw new Schema2BeansException(
          Common.getMessage(
              "DocRootNotInDOMGraph_msg", "deployment-plan", doc.getFirstChild().getNodeName()));

    this.graphManager.setXmlDocument(doc);

    // Entry point of the createBeans() recursive calls
    this.createBean(n, this.graphManager());
    this.initialize(options);
  }