docs: public DocumentNode getSpecificationHierarchy(Repository repository, SystemUnderTest systemUnderTest) throws GreenPepperServerException {
          try {
              sessionService.startSession();
  
              String user = repository.getUsername();
              String pwd = repository.getPassword();
  
              repository = loadRepository(repository.getUid());
  
  
              SystemUnderTest systemUnderTestDb = sutDao.getByName(repository.getProject().getName(), systemUnderTest.getName());
              DocumentRepository docRepo = repository.asDocumentRepository(EnvironmentType.newInstance("JAVA"), user, pwd);
  
              log.debug("Retrieved specification Hierarchy: " + repository.getName());
              DocumentNode hierarchy = DocumentNode.toDocumentNode(new Vector<Object>(docRepo.listDocumentsInHierarchy()));
              setExecutionEnable(hierarchy, repository.getUid(), systemUnderTestDb);
              return hierarchy;
          } catch (Exception ex) {
              throw handleException(SPECIFICATIONS_NOT_FOUND, ex);
          } finally {
              sessionService.closeSession();
          }
      }