}
public Validator createValidator() throws JAXBException {
Class c = getJMValidatorClass();
try {
JMValidator validator = (JMValidator) c.newInstance();
validator.setJAXBContextImpl(this);
return validator;
} catch (InstantiationException e) {
throw new JAXBException("Failed to instantiate class " + c.getName(), e);
} catch (IllegalAccessException e) {
throw new JAXBException("Illegal access to class " + c.getName(), e);