* @throws dmLite
* action exception if there is a problem
*/
public boolean update(T entity) throws ActionException {
boolean updated = false;
EntityAction entityAction = new EntityAction("update");
entityAction.setEntity(this);
entityAction.setParameter(entity);
try {
if (this == entity) {
String error = "Two update entities cannot be the same object.";
throw new ActionException(error, entityAction);
}