public void setValue(Object element, Object value) {
if (getValue().equals(value)) {
// then ignore this
return;
}
JcrTextPropertyDescriptor pd = (JcrTextPropertyDescriptor) element;
JcrNode jcrNode = getNode();
Map.Entry me = (Entry) pd.getId();
switch(columnId) {
case NAME: {
final String oldKey = String.valueOf(getValue());
final String newKey = String.valueOf(value);
pd.setNewPropertyName(newKey);
Map<String, String> pseudoMap = new HashMap<String, String>();
final String propertyValue = jcrNode.getProperties().getValue(oldKey);
pseudoMap.put(newKey, propertyValue);
final Entry<String, String> mapEntry = pseudoMap.entrySet().iterator().next();
element = new TextPropertyDescriptor(mapEntry, propertyValue);