Application Modernization with LLMs: Addressing Core Challenges in Reliability, Security, and Quality