public StackEntity getStack() {
    return stack;
  }
Gets the service configuration's stack.

@return the stack.
ambari-server/src/main/java/org/apache/ambari/server/orm/entities/ServiceConfigEntity.java