Wait - is your question about the Emgo wiring or about the bike's?
For the Emgo - do a little disassembly. It ain't rocket science. One wire goes to one tit on the bulb, one wire goes to the other tit on the bulb, one wire goes to ground on the bulb socket.
Using jumper wires, you can test the bulb itself. (-) battery terminal to the body of the bulb. (+) terminal to first one tit, then the other. The tit that lights the light brighter is the brake light one. Now you know which wire does what on the Emgo.
As for the bike, you're kinda on your own there. On the stocker, there were either two or three wires, depending on if the brake light 'body' was itself grounded to the fender. I'm betting there were three - one for ground (green??), one for tail light power and one for brake light power.
BTW - welcome aboard!
Good luck with it, and post back what you find.
Kirk