def get_referencer(registry):
<EOL>regis = getattr(registry, '<STR_LIT>', None)<EOL>if regis is None:<EOL><INDENT>regis = registry<EOL><DEDENT>return regis.queryUtility(IReferencer)<EOL>
Get the referencer class

:rtype: pyramid_urireferencer.referencer.AbstractReferencer