What about the bootloader?

so where do i find the bootloader for ATMGEGA 16U2 in order to reproduce the exact function it does onto the Artduino DUE? i mean to load code from arduino IDE to SAM3X.