For more information, see https://glassfish.dev.java.net/issues/show_bug.cgi?id=557.
Use java.util.Collection instead.