Moved the code from EasyuiBootStrap to doWithApplicationContext