New interface for getting the Application and Session objects.