code: private void addDrilldownOptionsArray(OptionsProcessorContext context) {
          JsonRenderer renderer = JsonRendererFactory.getInstance().getRenderer();
          response.render(JavaScriptHeaderItem.forScript(
                  MessageFormat.format("var {0};\n var {1};", JS_DRILLDOWN_ARRAY_NAME, getDrilldownArrayName(component)),
                  JS_DRILLDOWN_ARRAY_NAME + "-init"));
          response.render(OnDomReadyHeaderItem.forScript(MessageFormat.format("{0} = {1};", getDrilldownArrayName(component),
                  renderer.toJson(context.getDrilldownOptions()))));
      }
docs: Adds the drilldown options stored in the context to a javascript array.