Java client usage when having 2 web apps