Code for chapter 5.1 - downgraded Jersey to 2.7 and Jackson to 2.3.0 to make it work. For the most recent version of Jersey (2.14) - see https://jersey.java.net/documentation/latest/migration.html