public synchronized int getTotalOfMessagesToSend() { config = configDao.getOrCreate(null); return config.getTotalOfMessagesToSend(); }