move the configuration read to servletcontextlistener