Add support for javax.validation into platform.