catch (RuntimeException e)
{
errorMessage = invalidNumberMessage;
throw new ValidationException(invalidNumberMessage);
}
if (minValue != null && nk.compareTo(minValue) < 0)
{
errorMessage = minValueMessage;
throw new ValidationException(minValueMessage);
}
if (maxValue != null && nk.compareTo(maxValue) > 0)