code: public void doTag() {
          JspContext jspContext = getJspContext();
          DataGridStateFactory factory = DataGridStateFactory.getInstance(jspContext);
          assert factory != null;
  
          DataGridState state = null;
          if(_config != null)
              state = factory.getDataGridState(_name, _config);
          else
              state = factory.getDataGridState(_name);
  
          jspContext.setAttribute(_var, state);
      }
docs: Using a {@link DataGridConfig} object, access the {@link DataGridState} and place
  it in the {@link JspContext} under the attribute key set via {@link #setVar(String)}