It is called when using a move which forces pokemon replacement, thus Baton Pass, U-Turn, Healing Wish and Lunar Dance. After sending a change request to the client, it waits until the dispatcher gets informed about the switch. Then further queued moves are processed.