In the centre of the back-end architecture was an app written for physical tellers to operate in a retail branch.
This app was written in MUMPS: https://en.wikipedia.org/wiki/MUMPS
This app was nigh-unmaintainable, and it was the source-of-truth for how almost every transaction was to be executed. Rewriting it was not a realistic option.
So they put a screen-scraper in front of it, with a custom JDBC interface. Our code thought it was talking to a database, but it was actually emulating a terminal!
2/2