Using RunTimeContext in preference to Application to avoid cyclic dependencies