@Override
  protected void FetchConfig() {

    Document doc = XMLParser.Parser();
    NodeList nodes = doc.getElementsByTagName(TAG);
    Node gatewayNode = nodes.item(0);
    if (gatewayNode.getNodeType() == Node.ELEMENT_NODE) {
      Element eElement = (Element) gatewayNode;

      try {
        if (ValidateXMLDocument(eElement)) {
          num = Integer.valueOf(eElement.getAttribute(ATTNUM));
          typeOfgeneration =
              TypeOfGenerationEnum.valueOf(eElement.getAttribute(ATTTOG).toUpperCase());
          radio = Integer.parseInt(eElement.getAttribute(ATTRADIO));
          if (typeOfgeneration == TypeOfGenerationEnum.STATIC
              && ValidateXMLDocument(eElement, typeOfgeneration)) FetchStatic(eElement);
          if (typeOfgeneration == TypeOfGenerationEnum.FILE
              && ValidateXMLDocument(eElement, typeOfgeneration)) FetchFromFile(eElement);
        }
      } catch (Exception e) {
        System.err.println(e.getMessage());
        e.printStackTrace();
      }
    }
  }
  @Override
  protected void FetchConfig() {
    Document doc = XMLParser.Parser();
    NodeList nodes = doc.getElementsByTagName(TAG);
    Node routerNode = nodes.item(0);
    if (routerNode.getNodeType() == Node.ELEMENT_NODE) {
      Element eElement = (Element) routerNode;

      try {
        if (ValidateXMLDocument(eElement)) {

          _mode = ChannelMode.valueOf(eElement.getAttribute(ATTMODE));
          if (_mode == ChannelMode.Partially) FetchPartially(eElement);
          else if (_mode == ChannelMode.All) FetchALL();
        }
      } catch (Exception e) {
        System.err.println(e.getMessage());
        e.printStackTrace();
      }
    }
  }