private static boolean isValid(ValidationResult instanceResult, Map<String, ValidationResult> propertyResults) {
    boolean instanceValid = instanceResult.isValid();
    if (instanceValid) {
      for (Map.Entry<String, ValidationResult> entry : propertyResults.entrySet()) {
        ValidationResult propertyResult = entry.getValue();
        if (propertyResult != null && !propertyResult.isValid()) {
          return false;
        }
      }
    }
    return instanceValid;
  }
Return this result as a JSON string.

@return this result in JSON format
ambari-server/src/main/java/org/apache/ambari/server/view/validation/InstanceValidationResultImpl.java