long sid = sessionId.incrementAndGet();
principal = new JGDIPrincipal(trustedName, sid);
subject.getPrincipals().add(principal);
log.log(Level.FINE, "{0} added to subject", principal);
if (jmxPrincipalName != null) {
jmxPrincipal = new JMXPrincipal(jmxPrincipalName);
subject.getPrincipals().add(jmxPrincipal);
log.log(Level.FINE, "{0} added to subject", jmxPrincipal);
}
commitSucceded = true;
} else {