Added REST API to servletModule to run with scheduler code.