public void addUserIfNotExist(String uid) {
        if (getUserNode(uid) == null) {
            Element newUser = doc.createElement("user");
            newUser.setAttribute("id", uid);
            newUser.setAttribute("balance", "1000");
            Element root = doc.getDocumentElement();
            root.appendChild((Node) newUser);
            
            commitFile();

        }
    }