Given the following code: What is the expected outcome?

A.
A new document is created.
B.
The code does not compile.
C.
An exception is thrown and the transaction is aborted.
D.
A session is not part of the transaction, but a new document is still created.