impl.setTokenService(tokenService);
impl.setBusinessProcessService(graphManager);
impl.setLogService(logger);
impl.setNotificationService(new NotificationServiceImpl());
QueueServiceImpl qs = new QueueServiceImpl(impl);
timerService.setQueueService(qs);
impl.setQueueService(qs);
taskService.setBusinessProcessService(graphManager);
eiSvc.setLogService(logger);
eiSvc.setBusinessProcessService(graphManager);
eiSvc.setQueueService(qs);
eiSvc.setTokenService(tokenService);
/*
* now start the message pump for processing since we are all ready
*/
qs.start();
Engine engine = new Engine(tokenService, eiSvc, graphManager, qs);
System.out.println("STARTING AN INSTANCE");