Java fetch/print from webserver using javax.ws.rs