Modelling hetero atom like PTR

How can we model hetero atom along with other residues. I mean how PTR can be tansferred from templates to the finally modelled structure?