How to create SparkSession from existing SparkContext : <p>I have a Spark application which using Spark 2.0 new API with <code>SparkSession</code>.
I am building this application on top of the another application which is using <code>SparkContext</code>. I would like to pass <code>SparkContext</code> to my application and initialize <code>SparkSession</code> using existing <code>SparkContext</code>. </p>

<p>However I could not find a way how to do that. I found that <code>SparkSession</code> constructor with <code>SparkContext</code> is private so I can't initialize it in that way and builder does not offer any <code>setSparkContext</code> method. Do you think there exist some workaround? </p>
