CaseMain validator groovy script