added a builder for document link resolver
renamed ref to refId