Effective modernization of legacy software systems