Object[] arguments = new Object[]{fileBeingValidated};
System.out.println(MessageFormat.format(format, arguments));
}
if(rootElement != null){
ValidationManagerFactory validationManagerFactory =
new ValidationManagerFactory();
//you can pass either absolute or relative path of the validation
//file to getValidationManager()
ValidationManager validationManager =
validationManagerFactory.getValidationManager(validationFile);
Collection failures =
validationManager.validate(rootElement);
Display display = new Display();