'Connect the given protocol factory and unwrap its result.'

def connect(self, protocolFactory):

    return self._wrappedEndpoint.connect(self._wrapperFactory(protocolFactory)).addCallback((lambda protocol: protocol.wrappedProtocol))
