src/main/java/org/jamppa/XMPPBase.java
public void process(boolean block) {
        Runnable componentRunnable = new Runnable() {
            @Override
            public void run() {
                try {
                    mutex.acquire();
                } catch (InterruptedException e) {
                    LOGGER.fatal("Main loop.", e);
                }
            }
        };

        Thread t = new Thread(componentRunnable, "jamppa-hanging-thread");
        if (block) {
            t.run();
        } else {
            t.start();
        }
    }
public void process(boolean block) {
        Runnable componentRunnable = new Runnable() {
            @Override
            public void run() {
                try {
                    mutex.acquire();
                } catch (InterruptedException e) {
                    LOGGER.fatal("Main loop.", e);
                }
            }
        };

        Thread t = new Thread(componentRunnable, "jamppa-hanging-thread");
        if (block) {
            t.run();
        } else {
            t.start();
        }
    }
@throws ComponentException