* @return default value
*/
private String getDefaultValue(PropDef def, int index) {
try {
InternalValue[] values = def.getDefaultValues();
NamespaceResolver resolver = new AdditionalNamespaceResolver(registry);
return values[index].toJCRValue(resolver).getString();
} catch (RepositoryException e) {
throw new AssertionFailedError(e.getMessage());
}
}