Documents returned by parsers now may contain references instead of resources which are then resolved to resources