replace contextResolver by relationResolver