Goto elimination strategies in the migration of legacy code to java