public void saveToBeDeteled(DocumentsToBeDeletedVo document) { if(document == null) throw new CodingRuntimeException("Can not save a null DocumentsToBeDeletedVo."); if(!document.isValidated()) throw new CodingRuntimeException("DocumentsToBeDeletedVo not validated"); DomainFactory factory = getDomainFactory(); DocumentsToBeDeleted doDocument = DocumentsToBeDeletedVoAssembler.extractDocumentsToBeDeleted(factory, document); try { factory.save(doDocument); } catch (StaleObjectException e) { //should never happen } }