public void startEndpoint() throws IOException, InstantiationException { if (!initialized) { initEndpoint(); } if (lf) { tp.start(); } running = true; paused = false; if (lf) { listener = new LeaderFollowerWorkerThread(this); tp.runIt(listener); } else { maxThreads = getMaxThreads(); threadStart(); } }