String parentVarId = getMenuContext().peekVarId();
MenuContext menuContext = getMenuContext(); String parentVarId = menuContext.peekVarId(); String managerVarId = menuContext.getManagerVarId();
    protected void encodeJsMenuItemSeparator(UIComponent component)            throws WriterException {        String parentVarId = getMenuContext().peekVarId();        javaScriptWriter.writeCall(null, "_appendSeparatorItem").write(                parentVarId).writeln(");");    }