bean for json API and start of event servlet