securitySystem = (SecuritySystem) applicationContext.getBean("securitySystem");
    protected void onSetUp() throws Exception {    	factory = new ServiceFactory( (OmeroContext) applicationContext );        iQuery = (LocalQuery) factory.getQueryService();        iUpdate = (LocalUpdate) factory.getUpdateService();        iAdmin = (LocalAdmin) factory.getAdminService();        iAnalysis = factory.getAnalysisService();        iPojos = factory.getPojosService();        iPixels = factory.getPixelsService();        eContext = (EventContext) applicationContext.getBean("eventContext");        loginRoot();                data = new OMEData();        data.setDataSource((DataSource) applicationContext.getBean("dataSource"));            DataSource dataSource = (DataSource) applicationContext.getBean("dataSource");        jdbcTemplate = (JdbcTemplate) applicationContext.getBean("jdbcTemplate");        }