private void addConfig(Xml xmlLang, BridgeAppCode bridge) {
        if (this==xmlLang) return;
        
        Element group = createElement("group" ,"id" , "Config");
        rootElementCreate.appendChild(group);
        
        group.appendChild(createElement("text", "id", "LanguageFile", getValue("Config", "LanguageFile")));
        try {
            group.appendChild(createElement("text", "id", "Language", ((Node)xmlLang.getXpath().evaluate("/localizableStrings/group[@id='Lang']/string/*[contains(text(), '"+bridge.getAppRef().getLang()+"')]", xmlLang.getDocument(), XPathConstants.NODE)).getAttributes().item(0).getNodeValue()));
        } catch (XPathExpressionException ex) {
            group.appendChild(createElement("text", "id", "Language", "en"));
        }
        group.appendChild(createElement("text", "id", "SetNetwork", getValue("Config", "SetNetwork")));
        group.appendChild(createElement("text", "id", "Network", getValue("Config", "Network")));
        group.appendChild(createElement("text", "id", "NetworkPassword", getValue("Config", "NetworkPassword")));
        group.appendChild(createElement("text", "id", "PasswordHashCode", getValue("Config", "PasswordHashCode")));
        
        if (bridge.getAppRef().getAutoPhotos()) {
            group.appendChild(createElement("text", "id", "AutoPhotos", "True"));
        }
        else {
            group.appendChild(createElement("text", "id", "AutoPhotos", "False"));
        }
        group.appendChild(createElement("text", "id", "AutoPhotosTime", bridge.getAppRef().getAutoPhotosTime()));
        
        group.appendChild(createElement("text", "id", "Port", ""+bridge.getAppRef().getPort()));
        
        group.appendChild(createElement("text", "id", "LastIp", bridge.getAppRef().getIP()));
        
        try {
            int IPsCount = Integer.parseInt(getValueThrows("Config", "IpCount"));
            for (int i=1; i<=IPsCount; i++) {
                try {
                    String IP = getValueThrows("Config", "IP_"+i);
                    group.appendChild(createElement("text", "id", "IP_"+i, IP));
                } catch (XPathExpressionException ex) {
                    Logger.getLogger(BridgeAppCode.class.getName()).log(Level.SEVERE, null, ex);
                }
            }
        } catch (XPathExpressionException ex) {
            System.out.println("IPscount not loaded");
        }
        group.appendChild(createElement("text", "id", "IpCount", getValue("Config", "IpCount")));
    }