try
{
AdminContext adminContext = MBeanRegistryFactory.getAdminContext();
String instanceName = adminContext.getServerName();
String name = (String)getAttribute(ServerTags.NAME);
UserMgmtEvent event = new UserMgmtEvent(instanceName, name, action, user, groups);
event.setTargetDestination(getParentConfigName());
EventContext.addEvent(event);
}
catch (Exception e)
{
throw new MBeanConfigException(e.getMessage());