private static boolean remoteFeaturesContainsStartTLS(Element doc) {
        return doc.element("starttls") != null;
    }
Creates a dedicated reader for a socket.

@param router     the router for sending packets that were read.
@param connection the connection being read.
@param domainPair the local and remote domains
xmppserver/src/main/java/org/jivesoftware/openfire/net/RespondingServerStanzaHandler.java