add a case for migrate policy && modify EventService's sendEvent method to be cast method