Refined (very slow) ComplexResolver implementation