Prepopulate document resources

Prepopulate the existing resources of the document into the
DocumentResource that represents it.