Refactor WegasException.java so it does rollback