update jersey example to use jersey 2