def METHOD_NAME(self):
    """ Establish a PMAPI context to archive, host or local, via args """
    self.context = pmapi.pmContext.fromOptions(self.opts, sys.argv)
    if self.context.type == PM_CONTEXT_ARCHIVE:
        origin = self.opts.pmGetOptionOrigin()
        self.context.pmSetMode(PM_MODE_FORW, origin, 0)