Copy received message metadata while it lasts

def _storeAccessContext(snmpEngine):
        """Copy received message metadata while it lasts"""
        execCtx = snmpEngine.observer.getExecutionContext('rfc3412.receiveMessage:request')

        return {
            'securityModel': execCtx['securityModel'],
            'securityName': execCtx['securityName'],
            'securityLevel': execCtx['securityLevel'],
            'contextName': execCtx['contextName'],
            'pduType': execCtx['pdu'].getTagSet()
        }