users.setNode(uname, unode);
    public INode registerUser(String uname, String password) {        if (uname == null) {            return null;        }        uname = uname.toLowerCase().trim();        if ("".equals(uname)) {            return null;        }        INode unode = null;        try {            INode users = getUserRoot();            unode = (INode) users.getChildElement(uname);            if (unode != null) {                return null;            }            unode = new Node(uname, "user", nmgr.safe);            users.setNode(uname, unode);            String usernameField = (userMapping != null) ? userMapping.getNameField() : null;            String usernameProp = null;            if (usernameField != null) {                usernameProp = userMapping.columnNameToProperty(usernameField);            }            if (usernameProp == null) {                usernameProp = "name";            }            unode.setName(uname);            unode.setString(usernameProp, uname);            unode.setString("password", password);            return unode;        } catch (Exception x) {            logEvent("Error registering User: " + x);            return null;        }    }