'Applies ALPN/NPN protocol neogitation to the connection, if the factory
supports it.
@param connection: The OpenSSL connection object to have ALPN/NPN added
to it.
@type connection: L{OpenSSL.SSL.Connection}
@return: Nothing
@rtype: L{None}'

def _applyProtocolNegotiation(self, connection):

    if IProtocolNegotiationFactory.providedBy(self.wrappedFactory):
        protocols = self.wrappedFactory.acceptableProtocols()
        context = connection.get_context()
        _setAcceptableProtocols(context, protocols)
    return
