Hi everyone, blew my tranny and thinking about an engine swap.

My bike is an 2008 XB12R and I have a lead on a 05 XB12S engine. My bike is still perfect other than the tranny. Can I just use my right side engine case, oil lines, throttle body, and the Voltage regulator etc? I was reading that the oil lines and wiring harness are different etc, but these should all be fine for my bike as is correct (as long as I swap the right side engine case)? Wouldn't that only be a concern if I was swapping the newer engine into an older frame? As for the wiring harness, is the Stator completely different in the older engine or something? Are there different plugins on the older engine?

Does anybody know what I have to do to complete the swap?