private static EOImplantationGeo localInstanceOfObject(
     EOEditingContext ec, EOImplantationGeo object) {
   if (object != null && ec != null) {
     EOEditingContext otherEditingContext = object.editingContext();
     if (otherEditingContext == null) {
       throw new IllegalArgumentException(
           "The EOImplantationGeo " + object + " is not in an EOEditingContext.");
     } else {
       com.webobjects.eocontrol.EOGlobalID globalID =
           otherEditingContext.globalIDForObject(object);
       return (EOImplantationGeo) ec.faultForGlobalID(globalID, ec);
     }
   } else {
     return null;
   }
 }