Added Java example of server side implementation