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;
   }
 }
 /**
  * Creates and inserts a new EOTypeGroupe with non null attributes and mandatory relationships.
  *
  * @param editingContext
  * @param tgrpCode
  * @return EOTypeGroupe
  */
 public static EOTypeGroupe create(EOEditingContext editingContext, String tgrpCode) {
   EOTypeGroupe eo = (EOTypeGroupe) createAndInsertInstance(editingContext);
   eo.setTgrpCode(tgrpCode);
   return eo;
 }