Implemented ValidateContext.