Custom realm (see http://computingat40s.wordpress.com/how-to-create-a-custom-realm-in-glassfish-3-1-2-2/)