}
private ModuleValidator validateModule(Scriptable module, String modulePath) {
final ModuleValidator validator = new ModuleValidator(module);
try {
validator.validate();
return validator;
} catch (ModuleValidationException e) {
logger.warning("Failed to validate test module "+ modulePath +" :"+ e.getMessage());
return null;
}