public void userHasLogged(String user) {
   boolean isAnonymous = "".equals(StringUtils.parseName(user));
   String title =
       "User logged ("
           + connection.hashCode()
           + "): "
           + (isAnonymous ? "" : StringUtils.parseBareAddress(user))
           + "@"
           + connection.getServiceName()
           + ":"
           + connection.getPort();
   title += "/" + StringUtils.parseResource(user);
   System.out.println(title);
   // Add the connection listener to the connection so that the debugger can be notified
   // whenever the connection is closed.
   connection.addConnectionListener(connListener);
 }