UsersViewRegistration::prepareDocument

Prepares the document.