        {
            executorService = Executors.newCachedThreadPool();
            return getExecutorService();
        }
        return executorService;
    }

    public static void setExecutorService(ExecutorService service)
    {
        if (executorService != null)
        {
            executorService.shutdown();
        }
        executorService = service;