public ViewSubResourceDefinition getResourceDefinition(Resource.Type type) {
    return resourceDefinitions.get(type);
  }
Get the resource definition for the given type.

@param type  the resource type

@return the resource definition associated with the given type
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ViewEntity.java