Rest client in tomcat