localQuery = (LocalQuery) applicationContext.getBean(IQuery.class.getName()); localUpdate = (LocalUpdate) applicationContext.getBean(IUpdate.class.getName());
    public void create()    {        applicationContext = OmeroContext.getManagedServerContext();        serviceFactory = new ServiceFactory( applicationContext );        eventContext = (EventContext) applicationContext.getBean("eventContext");        log.debug("Created:\n"+getLogString());    }