def METHOD_NAME(self, corpus):
    # set language from corpus as selected language
    if corpus and corpus.language in LANGUAGES:
        self.language = ISO2LANG[corpus.language]
    else:
        # if Corpus's language not supported use default language
        self.language = self.DEFAULT_LANGUAGE
    # when workflow loaded use language saved in workflow
    if self.__pending_language is not None:
        self.language = self.__pending_language
        self.__pending_language = None
    super().METHOD_NAME(corpus)