@Override
  public Map<String, String> getInstanceDataMap() {
    Map<String, String> applicationData = new HashMap<>();

    String user = getCurrentUserName();

    for (ViewInstanceDataEntity viewInstanceDataEntity : data) {
      if (viewInstanceDataEntity.getUser().equals(user)) {
        applicationData.put(viewInstanceDataEntity.getName(), viewInstanceDataEntity.getValue());
      }
    }
    return applicationData;
  }
Construct a view instance definition.

@param view the parent view definition
@param name the instance name
@param label the instance label
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewInstanceEntity.java