int depth) throws WriterException {
int depth, String containerVarId) throws WriterException {
    public void encodeNodes(IJavaScriptWriter javaScriptWriter,            TreeComponent treeComponent, ISelectItemNodeWriter nodeRenderer,            int depth) throws WriterException {        this.javaScriptWriter = javaScriptWriter;        try {            SelectItemsContext selectItemsContext = createContext(                    javaScriptWriter.getComponentRenderContext(),                    treeComponent, nodeRenderer, depth, false);            this.selectItemsContext = selectItemsContext;            super.encodeNodes(treeComponent);        } finally {            this.javaScriptWriter = null;            this.selectItemsContext = null;        }    }