@workdir_loaded<EOL><INDENT>def get_prefix(self, name):<DEDENT>
if name == '<STR_LIT>':<EOL><INDENT>name = self.current<EOL><DEDENT>try:<EOL><INDENT>return self.prefixes[name]<EOL><DEDENT>except KeyError:<EOL><INDENT>raise KeyError(<EOL>'<STR_LIT>' % (name, self.path)<EOL>)<EOL><DEDENT>
Retrieve a prefix, resolving the current one if needed

Args:
    name(str): name of the prefix to retrieve, or current to get the
        current one

Returns:
    self.prefix_class: instance of the prefix with the given name