public boolean isVersionAdvertised() {
    if (null == components) {
      return false;
    }

    for (ComponentInfo componentInfo : components) {
      if (componentInfo.isVersionAdvertised()) {
        return true;
      }
    }

    return false;
  }
Gets whether this service advertises a version based on whether at least
one of its components advertises a version.

@return {@code true} if at least 1 component of this service advertises a
        version, {@code false} otherwise.
ambari-server/src/main/java/org/apache/ambari/server/state/ServiceInfo.java