Example updated using Dynamic Atrributes.
http://docs.oracle.com/javaee/5/tutorial/doc/bnaln.html#bnalr