protected void checkBounds(LocalDateTime value)
throws ValidationException
{
// check conditions
if (value.compareTo(getMaxValue()) > 0)
throw new ValidationException(String.format(BoundedValueTypePropertyMetadata.SHOULD_NOT_BE_GREATER_THAN, getName()) + getMaxValue());
if (value.compareTo(getMinValue()) < 0)
throw new ValidationException(String.format(BoundedValueTypePropertyMetadata.SHOULD_NOT_BE_LESS_THAN, getName()) + getMinValue());
}