Take in account parent application context.
misc adaptation for diProvider.