* The source group.
* @param role
* The target role.
*/
private void unmap(Object source, Role role) {
RoleMapping mapping;
for (int i = getRoleMappings().size(); i >= 0; i--) {
mapping = getRoleMappings().get(i);
if (mapping.getSource().equals(source)
&& mapping.getTarget().equals(role)) {
getRoleMappings().remove(i);
}
}
}