use the rest.xml from webapp; add an optional modules spring config.