Index: trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/AbstractDefaultGUIElement.java
===================================================================
--- trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/AbstractDefaultGUIElement.java	(revision 1432)
+++ trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/AbstractDefaultGUIElement.java	(revision 1433)
@@ -65,4 +65,11 @@
     /**
      * <p>
+     * the reference to the GUI model to which this GUI element belongs.
+     * </p>
+     */
+    private GUIModel guiModel;
+
+    /**
+     * <p>
      * Constructor. Creates a new AbstractDefaultGUIElement.
      * </p>
@@ -97,4 +104,12 @@
     public IGUIElement getParent() {
         return parent;
+    }
+
+    /* (non-Javadoc)
+     * @see de.ugoe.cs.autoquest.eventcore.guimodel.IGUIElement#getGUIModel()
+     */
+    @Override
+    public GUIModel getGUIModel() {
+       return guiModel;
     }
 
@@ -233,5 +248,16 @@
             }
         }
-
+    }
+
+    /**
+     * <p>
+     * used to set the GUI model to which this GUI element belongs. Will be set automatically, if
+     * used in combination with {@link GUIModel};
+     * </p>
+     *
+     * @param guiModel
+     */
+    void setGUIModel(GUIModel guiModel) {
+        this.guiModel = guiModel;
     }
 
Index: trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIElementGroup.java
===================================================================
--- trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIElementGroup.java	(revision 1432)
+++ trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIElementGroup.java	(revision 1433)
@@ -50,7 +50,9 @@
      * @param groupName the name of the GUI element group
      * @param parent    the optional parent GUI element of the group
+     * @param guiModel  the GUI model to which the group will belong
      */
-    public GUIElementGroup(String groupName, IGUIElement parent) {
+    public GUIElementGroup(String groupName, IGUIElement parent, GUIModel guiModel) {
         super(new GroupSpecification(groupName), parent);
+        super.setGUIModel(guiModel);
     }
 
Index: trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIModel.java
===================================================================
--- trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIModel.java	(revision 1432)
+++ trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/GUIModel.java	(revision 1433)
@@ -352,5 +352,5 @@
         
         TreeNode replacement = new TreeNode();
-        replacement.guiElement = new GUIElementGroup(groupName, parent.guiElement);
+        replacement.guiElement = new GUIElementGroup(groupName, parent.guiElement, this);
         
         for (TreeNode child : nodesToGroup) {
@@ -487,7 +487,7 @@
      *             thrown in cases such as the GUI element object could not be instantiated
      */
-    private IGUIElement integratePath(TreeNode parentNode,
+    private IGUIElement integratePath(TreeNode                        parentNode,
                                       List<? extends IGUIElementSpec> remainingPath,
-                                      IGUIElementFactory guiElementFactory)
+                                      IGUIElementFactory              guiElementFactory)
         throws GUIModelException
     {
@@ -500,4 +500,8 @@
                                                         parentNode.guiElement);
 
+            if (newElement instanceof AbstractDefaultGUIElement) {
+                ((AbstractDefaultGUIElement) newElement).setGUIModel(this);
+            }
+            
             child = parentNode.addChild(newElement);
             allNodes.put(child.guiElement, child);
Index: trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/IGUIElement.java
===================================================================
--- trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/IGUIElement.java	(revision 1432)
+++ trunk/autoquest-core-events/src/main/java/de/ugoe/cs/autoquest/eventcore/guimodel/IGUIElement.java	(revision 1433)
@@ -45,4 +45,11 @@
     public IGUIElement getParent();
 
+    /**
+     * <p>
+     * returns the GUI model to which this GUI element belongs
+     * </p>
+     */
+    public GUIModel getGUIModel();
+    
     /**
      * <p>
