adapt glassfish 3 clickstack for glassfish 4 ea