public NotingDetailsVo saveNotingDetails(NotingDetailsVo notingDetailVo) throws StaleObjectException { // Ensure the value object has been validated if (!notingDetailVo.isValidated()) throw new DomainRuntimeException("Noting Details has not been validated"); DomainFactory factory = getDomainFactory(); NotingDetails doNoting = NotingDetailsVoAssembler.extractNotingDetails(factory, notingDetailVo); CareContext doCarecontext = getCurrentCareContext(notingDetailVo.getCareContext());//WDEV-19027 doNoting.setCareContext(doCarecontext);//WDEV-19027 factory.save(doNoting); return NotingDetailsVoAssembler.create(doNoting); }