JAX-RS, JSON, Hibernate example cloned from IBM developerWorks. (change building system to Maven)