@Override
  public String getService() {
    File serviceVersionDir = new File(getAbsolutePath());
    File serviceDir = serviceVersionDir.getParentFile();

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