Allow the context for fragment lookups to be changed for RefResolver