Detail a scenario where you had to integrate a modern software application with a legacy hardware system.