private InternalValue[] computeAutoValues(NodeStateEx state, QPropertyDefinition def,
boolean useDefaultValues)
throws RepositoryException {
// compute system generated values if necessary
InternalValue[] values =
new NodeTypeInstanceHandler(session.getUserID()).
computeSystemGeneratedPropertyValues(state.getState(), def);
if (values == null && useDefaultValues) {
values = InternalValue.create(def.getDefaultValues());
}
// avoid empty value array for single value property