public void setSecurityContext(SecurityContext subject) {
   this.securityContext = subject;
   if (subject != null) {
     setUserName(subject.getUserName());
   } else {
     setUserName(null);
   }
 }
 public ConnectionContext(ConnectionInfo info) {
   this();
   setClientId(info.getClientId());
   setUserName(info.getUserName());
   setConnectionId(info.getConnectionId());
 }