@Override
  public Map<String, String> getPropertyMap() {
    Map<String, String> propertyMap = new HashMap<>();

    for (ViewInstancePropertyEntity viewInstancePropertyEntity : getProperties()) {
      propertyMap.put(viewInstancePropertyEntity.getName(), viewInstancePropertyEntity.getValue());
    }
    for (ViewParameterEntity viewParameterEntity : view.getParameters()) {
      String parameterName = viewParameterEntity.getName();
      if (!propertyMap.containsKey(parameterName)) {
        propertyMap.put(parameterName, viewParameterEntity.getDefaultValue());
      }
    }
    return propertyMap;
  }
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