// If the property exists, update its value.
boolean propFound = false;
for (Iterator i = properties.iterator(); i.hasNext();)
{
Property curProp = (Property) i.next();
if ((null != curProp) && (null != curProp.getPropertyName()) && curProp.getPropertyName().equals(key))
{
propFound = true;
curProp.setPropertyValue(value);
curProp.setModifiedDate(new Timestamp(System.currentTimeMillis()));
if (log.isDebugEnabled())
{
log.debug("Update existing property: " + curProp.toString());
}
// Property found, we break.
break;
}
}