public static ObjectWrapper Create(IProject proj, object wrapped)
{
ClassDescriptor klass = Registry.LookupClassByName(wrapped.GetType().FullName);
ObjectWrapper wrapper = klass.CreateWrapper();
wrapper.Loading = true;
wrapper.proj = proj;
wrapper.classDescriptor = klass;
wrapper.Wrap(wrapped, true);
wrapper.OnWrapped();
wrapper.Loading = false;
return(wrapper);
}