private boolean isSslHandshakeError(Throwable t) {
        // Unwrap DecoderException to check for potential SSLHandshakeException
        if (t instanceof DecoderException) {
            t = t.getCause();
        }

        return (t instanceof SSLHandshakeException);
    }
Decoder that parses ByteBuffers and generates XML stanzas. Generated
stanzas are then passed to the next filters.
xmppserver/src/main/java/org/jivesoftware/openfire/nio/NettyXMPPDecoder.java