Some sample to do the validating things
package org.shihyu.validation.jsr303
@AssertThat(
value = "this.age >= 18 || (this.age < 18 && not empty(this.parent))",
propertyNode = "age")
@Getter
@Setter
public class MyBean {
private int age;
private String parent;
@AssertThat("this != null && this.isAfter(forName('java.time.LocalDate').now().plusDays(7))")
private LocalDate expire;
// ...
}