public void insertWriteThread() {
        System.out.println("Inserting write thread");
        WritePropertiesThread writeThread = new WritePropertiesThread();
        Future<?> future = ProtoThreadQueue.getInstance().addToQueue(writeThread, "write"+THREAD_NAME_COUNT++);
        try {
            System.out.println(future.get().toString());
        } catch (InterruptedException e) {
            e.printStackTrace();
        } catch (ExecutionException e) {
            e.printStackTrace();
        }
    }