fixed compile errors cause by changes of BaseApplicationContext