Automated and seamless migration from legacy applications