Rewrite as Java EE application running on TomEE.