public String getConditionalServiceForDependency(DependencyInfo dependency) {
    return dependencyConditionalServiceMap.get(dependency);
  }
Get the service, if any, that a component dependency is conditional on.

@param dependency  dependency to get conditional service for

@return conditional service for provided component or null if dependency
        is not conditional on a service
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/Extension.java