Added hooks for custom Document/Item validation.