public function stageChildren($showAll=false) {
        $baseClass=ClassInfo::baseDataClass($this->owner->class);
        
        if($baseClass=='SnippetPackage') {
            if($this->owner->ID==0) {
                $staged=SnippetPackage::get();
            }
        }else if($baseClass=='SnippetLanguage') {
            if($this->owner->ID==0) {
                $staged=SnippetLanguage::get();
            }else {
                $staged=ArrayList::create(array_merge($this->owner->Folders()->toArray(), $this->owner->Snippets()->filter('FolderID', 0)->toArray()));
            }
        }else if($baseClass=='SnippetFolder') {
            $staged=ArrayList::create(array_merge($this->owner->Folders()->toArray(), $this->owner->Snippets()->toArray()));
        }else {
            $staged=new ArrayList();
        }
        
            
        $this->owner->extend("augmentStageChildren", $staged, $showAll);
        return $staged;
    }