private BOSHClient(final BOSHClientConfig sessCfg) {
        cfg = sessCfg;
        ScheduledExecutorService executorService = sessCfg.getExecutorService();
        if(executorService == null) {
            schedExec = Executors.newSingleThreadScheduledExecutor();
            schedExecOwned = true;
        } else {
            schedExec = executorService;
            schedExecOwned = false;
        }

        init();
    }