Getting javaclient to work in services