refractor server.java because it conflicts with restlet