Automation-led middleware modernization