* @throws RepositoryException if an error occurred (e.g. a corrupted policy set file).
*/
public void removePolicySetAndReferences(String policySetId) {
if (!policySetDAO.exists(papId, policySetId)) {
throw new NotFoundException("PolicySetId \"" + policySetId + "\" does not exists");
}
PolicySetType rootPolicySet = policySetDAO.getById(papId, rootPolicySetId);
if (PolicySetHelper.deletePolicySetReference(rootPolicySet, policySetId)) {