public Optional<ApplicationId> getOptionalApplicationId() {
        try {
            return Optional.of(getApplicationId());
        } catch (RuntimeException e) {
            return Optional.empty();
        }
    }
Returns application id read from ZooKeeper. Will return Optional.empty() if not found
configserver/src/main/java/com/yahoo/vespa/config/server/session/Session.java