public void addInstanceDefinition(ViewInstanceEntity viewInstanceDefinition) {
    removeInstanceDefinition(viewInstanceDefinition.getName());
    instances.add(viewInstanceDefinition);
  }
Add an instance definition.

@param viewInstanceDefinition  the instance definition
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java