validator = PluginsAccess.getPlugins().createPluginInstance(validatorClassName, RegistrationPropertyValidator.class);
}
else
{
log.debug("Using default registration property validator: " + DEFAULT_VALIDATOR_CLASS_NAME);
validator = new DefaultRegistrationPropertyValidator();
}
DefaultRegistrationPolicy delegate = new DefaultRegistrationPolicy();
delegate.setValidator(validator);
setPolicy(delegate);