// and set the policies the protected item import only is called if
// the node to be imported is defined to be protected. however, if
// the root node doesn't have the mixin assigned the defining node
// type of the imported policy nodes will be rep:root (unstructured)
// and the items will not be detected as being protected.
target.addMixin("rep:RepoAccessControllable");
if (!isSessionImport()) {
superuser.save();
}
doImport(target.getPath(), XML_REPO_POLICY_TREE);