Added support for virtual documents (those created during runtime and has no physical source).