private static object GenerateSmartReference(PropertyInfo propertyInfo)
{
// Found out what type of SmartRef this is
Type t = propertyInfo.PropertyType;
Type smartRefType = t.GetGenericArguments()[0];
return SmartReferenceFactory.GetAll(smartRefType).PickOne();
}