protected function addRetrieveTree(&$script)
    {
        $queryClassName     = $this->queryClassName;
        $objectClassName   = $this->objectClassName;
        $useScope          = $this->behavior->useScope();