|  | @@ 301-306 (lines=6) @@ | 
                                                            
                                    | 298 |  |                     } | 
                                                            
                                    | 299 |  |                     $elementContainer->addElement($element); | 
                                                            
                                    | 300 |  |                     break; | 
                                                            
                                    | 301 |  |                 case 'group': | 
                                                            
                                    | 302 |  |                     $referencedGroup = $this->findSomething('findGroup', $elementContainer->getSchema(), $node, $childNode->getAttribute('ref')); | 
                                                            
                                    | 303 |  |  | 
                                                            
                                    | 304 |  |                     $group = $this->loadGroupRef($referencedGroup, $childNode); | 
                                                            
                                    | 305 |  |                     $elementContainer->addElement($group); | 
                                                            
                                    | 306 |  |                     break; | 
                                                            
                                    | 307 |  |             } | 
                                                            
                                    | 308 |  |         } | 
                                                            
                                    | 309 |  |     } | 
                                                                                
                                |  | @@ 376-380 (lines=5) @@ | 
                                                            
                                    | 373 |  |  | 
                                                            
                                    | 374 |  |                         $type->addAttribute($attribute); | 
                                                            
                                    | 375 |  |                         break; | 
                                                            
                                    | 376 |  |                     case 'group': | 
                                                            
                                    | 377 |  |                         $referencedGroup = $this->findSomething('findGroup', $schema, $node, $childNode->getAttribute('ref')); | 
                                                            
                                    | 378 |  |                         $group = $this->loadGroupRef($referencedGroup, $childNode); | 
                                                            
                                    | 379 |  |                         $type->addElement($group); | 
                                                            
                                    | 380 |  |                         break; | 
                                                            
                                    | 381 |  |                     case 'attributeGroup': | 
                                                            
                                    | 382 |  |                         $attribute = $this->findSomething('findAttributeGroup', $schema, $node, $childNode->getAttribute('ref')); | 
                                                            
                                    | 383 |  |                         $type->addAttribute($attribute); |