Class clazz;
try {
clazz = ClassUtils.forName(className);
return clazz.newInstance();
} catch (ClassNotFoundException cnfe) {
throw new ValidationConfigurationException("Could not load class '" + className + "'", cnfe);
} catch (IllegalAccessException iae) {
throw new ValidationConfigurationException("Could not instantiate class '" + className + "'", iae);
} catch (InstantiationException ie) {
throw new ValidationConfigurationException("Could not instantiate class '" + className + "'", ie);
}
}