@Override
  public void init(ServletConfig config) throws ServletException {
    super.init(config);

    ServletContext context = config.getServletContext();
    viewContext = (ViewContext) context.getAttribute(ViewContext.CONTEXT_ATTRIBUTE);
    dataStore = Boolean.parseBoolean(viewContext.getProperties().get("data.store.enabled")) ?
        viewContext.getDataStore() : null;
  }
The view data store.
<code>null</code> indicates that the view properties should be used instead of the data store.
ambari-views/examples/phone-list-upgrade-view/src/main/java/org/apache/ambari/view/phonelist/PhoneListServlet.java