public static boolean areVersionsEqual(String version1, String version2, boolean allowEmptyVersions) {
    return 0 == compareVersions(version1, version2, allowEmptyVersions);
  }
Compares two version for equality, allows empty versions

@param version1
         the first operand. If set to {@value #DEV_VERSION}
         then this will always return {@code 0)}
@param version2
         the second operand.
@param allowEmptyVersions
         Allow one or both version values to be null or empty string
@return true if versions are equal; false otherwise
ambari-server-spi/src/main/java/org/apache/ambari/server/utils/VersionUtils.java