added mapvalidator example for java