Fixing rest services transactional issue