@Override
  public void finalizeModule() {
    finalizeChildModules(configurationModules.values());
    finalizeChildModules(componentModules.values());
    finalizeConfiguration();
    if(serviceInfo.getCommandScript() != null && ! isDeleted()) {
      stackContext.registerServiceCheck(getId());
    }
  }
Resolve common service
@param allStacks       all stack modules
@param commonServices  common service modules

@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/stack/ServiceModule.java