TokenService tokenService = new TokenServiceImpl();
InstanceServiceImpl eiSvc = new InstanceServiceImpl();
BusinessProcessServiceImpl graphManager = new BusinessProcessServiceImpl();
TaskServiceImpl taskService = new TaskServiceImpl();
TimerServiceImpl timerService = new TimerServiceImpl();
LogService logger = new StdoutLogService();
MessageProcessor impl = new MessageProcessor();
impl.setTaskService(taskService);
impl.setTimerService(timerService);
impl.setExecutionInstanceService(eiSvc);
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);