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);
jcrNode.renameProperty(oldKey, newKey);
break;
}
case TYPE: {
int propertyType = PropertyTypeSupport.propertyTypeOfIndex((Integer)value);
jcrNode.changePropertyType(String.valueOf(me.getKey()), propertyType);