example from https://netbeans.org/kb/docs/javaee/ecommerce/intro.html