162163164165166167168169170171
accountDAO.update(account); } catch (InvalidStateException ex) { throw new WebApplicationException( Response .status(Status.BAD_REQUEST) .entity(new InvalidStateExceptionPresenter().present(ex)) .build() ); } }