// use a separate instance of actor as subject is not set on connect/disconnect
// we need to pass principal name explicitly into log actor
LogActor logActor = new ManagementActor(_appRegistry.getRootMessageLogger(), user);
if (JMXConnectionNotification.OPENED.equals(type))
{
logActor.message(ManagementConsoleMessages.OPEN(user));
}
else if (JMXConnectionNotification.CLOSED.equals(type) ||
JMXConnectionNotification.FAILED.equals(type))
{
logActor.message(ManagementConsoleMessages.CLOSE(user));