} // else: no need to revoke impersonation for the given principal.
}
// 2. adjust set of impersonators
for (Principal princicpal : toRemove.values()) {
if (!imp.revokeImpersonation(princicpal)) {
String principalName = princicpal.getName();
handleFailure("Failed to revoke impersonation for " + principalName + " on " + a);
}
}
List<String> nonExisting = new ArrayList<String>();