public void removeStack(StackEntity stackEntity) {
    String stackKey = stackEntity.getStackName() + StackManager.PATH_DELIMITER +  stackEntity.getStackVersion();
    stackMap.remove(stackKey);
  }
Parse the specified extension root directory

@param extensionRoot  the extension root directory to parse
@return map of extension id which contains name and version to extension module.
@throws AmbariException if unable to parse all extensions
ambari-server/src/main/java/org/apache/ambari/server/stack/StackManager.java