private Collection<PhoneUser> getAllUsers() throws PersistenceException {
    if (dataStore != null) {
      return dataStore.findAll(PhoneUser.class, null);
    }
    Map<String, String> data = new LinkedHashMap<String, String>(viewContext.getInstanceData());
    Collection<PhoneUser> users = new HashSet<PhoneUser>();

    for (Map.Entry<String,String> entry : data.entrySet()) {
      users.add(new PhoneUser(entry.getKey(), entry.getValue()));
      entry.getKey();
    }
    return users;
  }
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-view/src/main/java/org/apache/ambari/view/phonelist/PhoneListServlet.java