internal bool ConvertFormat(string sourceFileName, string targetFileName) { string input; var inputRetriver = GetInputRetriever(sourceFileName); var inputPersister = GetInputPersister(targetFileName); try { input = inputRetriver.GetData(sourceFileName); } catch (FileNotFoundException) { return(false); } var doc = _inputParser.ParseInput(input); var serializedDoc = _documentSerializer.Serilize(doc); try { inputPersister.PersistDocument(serializedDoc, targetFileName); } catch (AccessViolationException) { return(false); } return(true); }