Adaptation of O'Reilly's EJB 6th edition book code examples for Tomee 1.7.1