Under what circumstances should one do mutah according to Islam? How does one find the proper mutah spouse since the Shia community is small?

In order to prevent one self from haraam.