public synchronized RemoteSession activated(ApplicationVersions applicationVersions) {
        Objects.requireNonNull(applicationVersions, "applicationVersions cannot be null");
        return new RemoteSession(tenant, sessionId, sessionZooKeeperClient, Optional.of(applicationVersions));
    }
Creates a remote session, with application set

@param tenant The name of the tenant creating session
@param sessionId The session id for this session.
@param zooKeeperClient a SessionZooKeeperClient instance
@param applicationVersions current application versions for this session
configserver/src/main/java/com/yahoo/vespa/config/server/session/RemoteSession.java