} catch (SecurityException se)
{
throw se;
} catch (Exception e)
{
KeyedMessage msg =
SecurityException.UNEXPECTED.create("GroupManager.removeGroup",
"GroupSecurityHandler.removeGroupPrincipal("+
GroupPrincipalImpl.getPrincipalNameFromFullPath((String) groups[i])+")",
e.getMessage());
log.error(msg, e);
throw new SecurityException(msg, e);
}
// Remove preferences
Preferences groupPref = Preferences.userRoot().node(
(String) groups[i]);
try
{
groupPref.removeNode();
} catch (BackingStoreException bse)
{
KeyedMessage msg =
SecurityException.UNEXPECTED.create("Preferences.removeNode("+groups[i]+")",
bse.getMessage());
log.error(msg, bse);
throw new SecurityException(msg, bse);
}