update get application context method