public Optional<Long> activeSessionOf(ApplicationId id) {
        return database().activeSessionOf(id);
    }
Returns the active session id for the given application.
Returns Optional.empty if application not found or no active session exists.
configserver/src/main/java/com/yahoo/vespa/config/server/application/TenantApplications.java