public function setRoles($resourceUri, $roles = null) {
        //Check if the data has been loaded yet, and load it if not
        if (!$this->ready) {
            $this->init();
        }

        //If no roles were passed in, use the default
        $roles = $roles ?: $this->defaultRoles;

        //Call the create node method
        return $this->createNode($resourceUri, $roles);
    }