@Override
public <T extends HelixProperty> boolean updateProperty(PropertyKey key,
T value)
{
PropertyType type = key.getType();
String path = key.getPath();
try
{
_readWriteLock.writeLock().lock();
if (type.isUpdateOnlyOnExists())
{
updateIfExists(path, value.getRecord(), type.isMergeOnUpdate());
}
else
{
createOrUpdate(path, value.getRecord(), type.isMergeOnUpdate());
}
return true;
}
catch (PropertyStoreException e)
{