if (value.getType() == PropertyType.REFERENCE || value.getType() == PropertyType.WEAKREFERENCE)
{
return value.getString();
}
throw new IncorrectAtomicTypeException("Impossible to create the value object - unsupported class");
}
catch (RepositoryException e)
{
throw new IncorrectAtomicTypeException("Impossible to convert the value : " + value.toString(), e);
}
}