return entityName;
}
public IERXRestEntityDelegate entityDelegate(EOEntity entity) {
String entityName = entity.name();
IERXRestEntityDelegate entityDelegate = (IERXRestEntityDelegate) ERXThreadStorage.valueForKey("restEntityDelegate." + entityName);
if (entityDelegate == null) {
entityDelegate = (IERXRestEntityDelegate) d2wContext().valueForKey("restEntityDelegate");
if (entityDelegate == null) {
entityDelegate = _defaultDelegate;
}
ERXThreadStorage.takeValueForKey(entityDelegate, "restEntityDelegate." + entityName);
}
d2wContext().setEntity(entity);
entityDelegate.initializeEntityNamed(entityName);
return entityDelegate;
}