@Override
    public void setStatus(Status status) {
        super.setStatus(status);
        if (status != Status.AUTHENTICATED) {
            authenticationMethod = null;
        }
    }
Returns the connection associated with this Session.

@return The connection for this session
xmppserver/src/main/java/org/jivesoftware/openfire/session/LocalServerSession.java