@Override
  public String getStack() {
    File serviceDir = new File(getAbsolutePath());
    File stackVersionDir = serviceDir.getParentFile().getParentFile();
    File stackDir = stackVersionDir.getParentFile();

    String stackId = String.format("%s-%s", stackDir.getName(), stackVersionDir.getName());
    return stackId;
  }
@return the stack name-version (will be used for logging purposes by superclass)
ambari-server/src/main/java/org/apache/ambari/server/stack/StackServiceDirectory.java