Use java.nio.file.* instead of java.file.*
Optimize StaticServlet (call servletContext.getResource() only once)