Update context's refresh method.