Isomorphic web application in Java