Handle UnsupportedOperationException from getInstalledExtensions in Glassfish 4.0