public void setSession(LocalSession session) {
        this.session = session;
    }
Creates a dedicated reader for a socket.

@param router     the router for sending packets that were read.
@param connection the connection being read.
xmppserver/src/main/java/org/jivesoftware/openfire/net/StanzaHandler.java