private void addExtensionServices() throws AmbariException {
    for (ExtensionModule extension : extensionModules.values()) {
      for (Map.Entry<String, ServiceModule> entry : extension.getServiceModules().entrySet()) {
        serviceModules.put(entry.getKey(), entry.getValue());
      }
      stackInfo.addExtension(extension.getModuleInfo());
    }
  }
Check if parent is extension service
@param parent  Parent string
@return true: if parent is extension service, false otherwise
ambari-server/src/main/java/org/apache/ambari/server/stack/StackModule.java