if (cd==null)
throw new RuntimeException("Could not find class description for entity named "+entityName);
EOEnterpriseObject newEO=cd.createInstanceWithEditingContext(editingContext,null);
editingContext.insertObject(newEO);
if (objectInfo != null)
newEO.takeValuesFromDictionary(objectInfo);
return newEO;
}
/**
* Creates an object using the utility method <code>createEO</code>