Joint ventures are becoming the new transaction of choice. Up-front preparation is key to achieving the most profitable structure.