public NavigableMap<String, StackInfo> getCachedStackMap() {
      return cachedStackMap;
    }
Directory tree rescans and stack modules parsing take much time on every module init.
This class enhances {@code}StackManager{@code} to reuse already parsed modules.
ambari-server/src/test/java/org/apache/ambari/server/stack/StackManagerMock.java