added context finalization, application listener and service to extract partial context based on a path