Validating criteria in getRootContents