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