if (role == null) {
return;
}
try {
MBeanUtils.destroyMBean(role);
database.removeRole(role);
} catch (Exception e) {
IllegalArgumentException iae = new IllegalArgumentException
("Exception destroying role [" + rolename + "] MBean");
jdkCompat.chainException(iae, e);
throw iae;