private void fullyResolveExtensions(Map<String, StackModule> stackModules, Map<String, ServiceModule> commonServiceModules,
      Map<String, ExtensionModule> extensionModules)
      throws AmbariException {
    for(ExtensionModule extensionModule : extensionModules.values()) {
      if (extensionModule.getModuleState() == ModuleState.INIT) {
        extensionModule.resolve(null, stackModules, commonServiceModules, extensionModules);
      }
    }
  }
Fully resolve extensions.

@param extensionModules      map of extension id which contains name and version to extension module.
@param stackModules          map of stack id which contains name and version to stack module.
@param commonServiceModules  map of common service id which contains name and version to common service module.
@throws AmbariException if unable to resolve all extensions
ambari-server/src/main/java/org/apache/ambari/server/stack/StackManager.java