@Override
        public void closeVirtualConnection(@Nullable final StreamError error) {
            ((HttpSession) session).closeSession(error, true);
        }
A virtual server connection relates to a http session which its self can relate to many http
connections.
xmppserver/src/main/java/org/jivesoftware/openfire/http/HttpSession.java