public WorkEntity update(@PathParam("id") String id, Work work) {
try {
transactionManager.begin();
((WorkEntity)work).setLastUpdated(new Date());
((WorkEntity)work).setLastUpdatedBy(super.CHANGED_BY);
WorkEntity updatedEntity = super.updateEntity(id, ((WorkEntity)work));
getRepository().refresh(updatedEntity);
return new CopyHelper().copy(updatedEntity, Expose.class);
}catch (RuntimeException e) {
transactionManager.setRollbackOnly();
throw e;