// the property key exits and is associated to this node.
if (prefsProvider.isPropertyManagerEnabled() && !foundProp)
{
for (Iterator i = nodeKeys.iterator(); i.hasNext();)
{
PropertyKey curpk = (PropertyKey) i.next();
if (curpk.getPropertyKeyName().equals(key))
{
foundKey = true;
if (log.isDebugEnabled())
log.debug("New property value: [" + key + ", " + value + "]");
properties.add(new PropertyImpl(node.getNodeId(), curpk.getPropertyKeyId(), curpk, curpk
.getPropertyKeyType(), value));
}
}
}
else if (!prefsProvider.isPropertyManagerEnabled() && !foundProp)
{
foundKey = true;
PropertyKey pKey = new PropertyKeyImpl(key, Property.STRING_TYPE);
properties.add(new PropertyImpl(node.getNodeId(), pKey.getPropertyKeyId(), pKey, pKey
.getPropertyKeyType(), value));
}
if (!foundKey)