return mapper.getJcrName(property.getValue().getString());
} else {
return defaultValue;
}
}
<BUG>public void setName(String name, String value) {
tree.setProperty(name, factory.createValue(
mapper.getOakName(value), PropertyType.NAME));
</BUG>
}

return mapper.getJcrName(property.getValue().getString());
} else {
return defaultValue;
}
}
public void setName(String name, String value) {
String oakName = mapper.getOakName(value);
if (oakName == null) {
throw new IllegalArgumentException("Invalid name:" + name);
}
tree.setProperty(name, factory.createValue(
oakName, PropertyType.NAME));
}
