private static T GetAndFetch <T, TE>(object id, ObjectFactoryBase <T, TE> objectFactory) { objectFactory.Get(id); objectFactory.Fetch(); return(objectFactory.ModelObject); }