Set context to the result data.