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