Refactor a getUploadsDir method out of UploadsServlet.