You can cast a GlobalVariable object into java.util.List or java.util.Map, and add items into it. See
java.util.List
java.util.Map