@Override @Secured public void removeTest(Test test) throws ServiceException { Test freshTest = testDAO.get(test.getId()); try { for (TestExecution testExecution : freshTest.getTestExecutions()) { removeTestExecution(testExecution); } } catch (ServiceException ex) { throw new ServiceException("serviceException.removeTest.cannotRemoveAllTestExecutions", ex); } testDAO.remove(freshTest); }