Method instantiateFilter in Xgoptional and Xnjoin