*/
    public INode getSubnodeAt(int index) {        loadNodes();        if (subnodes == null) {            return null;        }        DbMapping smap = null;        if (dbmap != null) {            smap = dbmap.getSubnodeMapping();        }        Node retval = null;        if (subnodes.size() > index) {            // check if there is a group-by relation            retval = ((NodeHandle) subnodes.get(index)).getNode(nmgr);            if ((retval != null) && (retval.parentHandle == null) &&                    !"root".equalsIgnoreCase(retval.getPrototype())) {                retval.setParent(this);                retval.anonymous = true;            }        }        return retval;    }