Some sample codes used in blogs, such as HowToJBoss.com