public ViewVersionResponse getResponse(ViewEntity viewDefinition) {
    String archive = viewDefinition.getArchive();
    String buildNumber = viewDefinition.getBuild();
    boolean clusterConfigurable = viewDefinition.isClusterConfigurable();
    String description = viewDefinition.getDescription();
    String label =  viewDefinition.getLabel();
    String maskerClass = viewDefinition.getMask();
    String maxAmbariVersion = viewDefinition.getConfiguration().getMaxAmbariVersion();
    String minAmbariVersion = viewDefinition.getConfiguration().getMinAmbariVersion();
    List<ParameterConfig> parameters = viewDefinition.getConfiguration().getParameters();
    ViewDefinition.ViewStatus status = viewDefinition.getStatus();
    String statusDetail = viewDefinition.getStatusDetail();
    boolean system =  viewDefinition.isSystem();
    String version =  viewDefinition.getVersion();
    String viewName =  viewDefinition.getCommonName();
    ViewVersionResponse.ViewVersionInfo viewVersionInfo = new ViewVersionResponse.ViewVersionInfo(archive, buildNumber,
      clusterConfigurable, description, label, maskerClass, maxAmbariVersion, minAmbariVersion, parameters, status,
      statusDetail, system, version, viewName);
    return new ViewVersionResponse(viewVersionInfo);
  }
Returns response schema instance for view version REST endpoint: /views/{viewName}/versions
@param viewDefinition   view entity {@link ViewEntity}
@return {@link ViewVersionResponse}
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/ViewVersionResourceProvider.java