public void init(Services services) throws ServiceException {
try {
Configuration conf = services.getConf();
LOG = XLog.getLog(getClass());
Class<? extends EventQueue> queueImpl = (Class<? extends EventQueue>) conf.getClass(CONF_EVENT_QUEUE, null);
eventQueue = queueImpl == null ? new MemoryEventQueue() : (EventQueue) queueImpl.newInstance();
eventQueue.init(conf);
// initialize app-types to switch on events for
initApptypes(conf);
// initialize event listeners
initEventListeners(conf);