

def filingEnd(cntlr, options, filesource, entrypointFiles, sourceZipStream=None, responseZipStream=None, *args, **kwargs):
    modelManager = cntlr.modelManager
    if hasattr(modelManager, 'efmFiling'):
        for pluginXbrlMethod in pluginClassMethods('EdgarRenderer.Filing.End'):
            pluginXbrlMethod(cntlr, options, filesource, modelManager.efmFiling)
        filingReferences = dict(((report.url, report) for report in modelManager.efmFiling.reports))
        modelManager.efmFiling.close()
        del modelManager.efmFiling

dataset/ETHPy150Open Arelle/Arelle/arelle/plugin/validate/EFM/__init__.py filingEnd/original