Common code for some Glassfish projects