Sample code using primefaces, jpa, log4j, maven, mysql, etc