[CXF-5964] The injection of contexts into Application needs to be done earlier