public void createNewSession(Instant createTime) {
        log.log(Level.FINE, () -> "Creating new session at " + sessionPath.getAbsolute());
        CuratorTransaction transaction = new CuratorTransaction(curator);
        transaction.add(CuratorOperations.create(sessionPath.getAbsolute()));
        transaction.add(CuratorOperations.create(sessionPath.append(UPLOAD_BARRIER).getAbsolute()));
        transaction.add(CuratorOperations.create(sessionStatusPath.getAbsolute(), Utf8.toBytes(Status.NEW.name())));
        transaction.add(CuratorOperations.create(getCreateTimePath().getAbsolute(), Utf8.toBytes(String.valueOf(createTime.getEpochSecond()))));
        transaction.commit();
        log.log(Level.FINE, () -> "Done creating new session at " + sessionPath.getAbsolute());
    }
Create necessary paths atomically for a new session.

@param createTime Time of session creation.
configserver/src/main/java/com/yahoo/vespa/config/server/session/SessionZooKeeperClient.java