public void deleteLocalSession(long sessionId) {
        log.log(Level.FINE, () -> "Deleting local session " + sessionId);
        SessionStateWatcher watcher = sessionStateWatchers.remove(sessionId);
        if (watcher != null) watcher.close();
        localSessionCache.remove(sessionId);
        NestedTransaction transaction = new NestedTransaction();
        var dir = tenantFileSystemDirs.sessionsPath().getParentFile();
        transaction.add(FileTransaction.from(FileOperations.delete(getSessionAppDir(sessionId).toPath(), dir.toPath())));
        transaction.commit();
    }
Creates a local session based on a remote session and the distributed application package.
Does not wait for session being created on other servers.
configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionRepository.java