// only interested in ComfortTemperature
if (evt.getPropertyName().equals("ComfortTemperature"))
{
// get the proposed temperature
Double d = (Double)evt.getNewValue();
// veto a temperature over 100 degrees Celsius
if (d.doubleValue() > 100.0)
{
throw new PropertyVetoException("Invalid Comfort Temperature", evt);
}
}