public void addDefinition(ViewEntity definition) {
    viewDefinitions.put(definition.getName(), definition);
  }
Add a view definition to the registry.

@param definition the definition
ambari-server/src/main/java/org/apache/ambari/server/view/ViewRegistry.java