APOLLO-3080 added source document type into document

Lets not merge this yet until we are sure it will do the trick