Handle the case of unloaded original file (see #10347)
Review test for #10347
cleaning
Add an extra test.
Add extra test using pojo object.
Add extra test checking if original is loaded.

Check that the original file is loaded when
the exclude close is on.
remove  null check.
Forgot to save all changes.
Merge pull request #732 from jburel/rebased/develop/annotations

Handle the case of unloaded original file (see #10347) (rebased onto develop)