}
private void registerSessionMBean(JGDISession session) {
log.entering("JGDIAgent", "registerSessionMBean", session);
try {
JGDIJMX mbean = new JGDIJMX(session);
ObjectName mbeanName = getObjectNameForSessionMBean(session.getId());
getMBeanServer().registerMBean(mbean, mbeanName);
log.log(Level.FINE, "mbean for session {0} registered", session.getId());
} catch (Exception ex) {
LogRecord lr = new LogRecord(Level.WARNING, "Can not register mbean for session {0}");