refactoring jersey->dropwizard