XD-806: Module options validation at the parser level

Add jsr303 validation