Added method to get application context