{
rulesPerPrincipal.remove(principalName);
Iterator it = rules.iterator();
while (it.hasNext())
{
PrincipalRule rule = (PrincipalRule)it.next();
String key = this.makePrincipalRuleKey(rule.getPrincipalName(), rule.getLocatorName());
principalRules.remove(key);
}
}
}
}