Examples from the book (Java EE 7)