allow programmatic setting of the application context.