Update App1.java

Adding some more code to openSession()