final int size = validators_size();
final IValidatable validatable = new ValidatableAdapter();
int i = 0;
IValidator validator = null;
boolean isNull = getConvertedInput() == null;
try
{
for (i = 0; i < size; i++)
{
validator = validators_get(i);
if (isNull == false || validator instanceof INullAcceptingValidator)
{
validator.validate(validatable);
}
if (!isValid())
{
break;
}
}
}
catch (Exception e)
{
throw new WicketRuntimeException("Exception '" + e + "' occurred during validation " +
validator.getClass().getName() + " on component " + getPath(), e);
}
}