[5.0] Removed unused use statement.
Add validation contracts.
Merge pull request #5722 from tmalecki/master

[5.0] Removed unused use statement.