Phase out getfromapplicationcontext