NEED HELP WITH MP PRIME

How do i fix my master piece Optimus prime?
Heres the problem the knee joint broke and messed up would or what type of glue would be used to fix him?
Heres the problem the knee joint broke and messed up would or what type of glue would be used to fix him?