ServiceFactory factory = new ServiceFactory( (OmeroContext) applicationContext );
factory = new ServiceFactory( (OmeroContext) applicationContext );
    protected void onSetUp() throws Exception {    	ServiceFactory factory = new ServiceFactory( (OmeroContext) applicationContext );        iQuery = (LocalQuery) factory.getQueryService();        iUpdate = (LocalUpdate) factory.getUpdateService();        iAdmin = factory.getAdminService();        iAnalysis = factory.getAnalysisService();        iPojos = factory.getPojosService();        iPixels = factory.getPixelsService();        eContext = (EventContext) applicationContext.getBean("eventContext");        loginRoot();    }