if object_id is not None and object_id in container:\n
return\n
http_exchange = container.newContent(\n
id=object_id,\n
portal_type=\'HTTP Exchange\',\n
request=request,\n
response=response,\n
resource_value=None if notification_type is None else getattr(portal.portal_categories.http_exchange_resource.payline.notification, notification_type),\n
source_value=context,\n
)\n
# Notification ends in confirmed state, to be picked up by alarm (for security context switch)\n