indentation
nullptr
speed up parseDocumentId
don't fail on forced shutdown
make parseDocumentId more strict again
added test