Added WIP, preliminary, non-working support for glassfish 4.