class ConfigNode {

    protected int getNodeDepth() {
        return parent != null ? parent.getNodeDepth() + 1 : -1; // Root node is -1
    }

    public  ConfigNode(String key, ConfigNode parent, String value);

}