public void InitIfNeeded() { ClearIfChanged(); if (_inited) { return; } Logger.Info($"Init container for dstFile={DstFilePath}"); if (!File.Exists(DstFilePath)) { Logger.Error($"dstFile={DstFilePath} not exist", null, true); return; } try { _parser.ParseValidDocument(DstFilePath, _dstWordToValuesLocationContainer.Keys, OnDstValueFound); _inited = true; } catch (Exception e) { Logger.Error($"cannot parse invalid json file: {DstFilePath}", e, true); } }