this.ctx = OmeroContext.getClientContext();
if ( getDefaultContext() != null ) { this.ctx = OmeroContext.getInstance(getDefaultContext()); }
    public ServiceFactory(){        this.ctx = OmeroContext.getClientContext();    }