java: updated example to use dropwizard