to refactory the function of InsertEmulationMessageQueue