public function moveTo($newUrl, $flags)
    {
        $qry = new InvokePostMethodQuery($this->getResourcePath(), "moveto", array(
            "newurl" => $newUrl,
            "flags" => $flags
        ));
        $this->getContext()->addQuery($qry);
    }