@Inject
  public void init() throws Exception {
    // Need to be initialized before all actions
    ALL_SUPPORTED_OS = new ArrayList<>(osFamily.os_list());

    readServerVersion();

    stackManager = stackManagerFactory.create(stackRoot, commonServicesRoot, extensionsRoot,
        osFamily, false);

    mpackManager = mpackManagerFactory.create(mpacksV2Staging, stackRoot);

    getCustomActionDefinitions(customActionRoot);
  }
Initialize the Ambari Meta Info

@throws Exception throws exception if not able to parse the Meta data.
ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java