@Override
    public void testFailure(Failure failure) {
        setCurrentFailure(failure);
        final String message = failure.getMessage();
        if (message != null) {
            logger.error("END Testcase '{}' '{}' FAILED because '{}'.", new Object[] {getId(failure.getDescription()),
                    failure.getTestHeader(), message, });
        } else {
            logger.error("END Testcase '{}' '{}' FAILED because '{}'.", new Object[] {getId(failure.getDescription()),
                    failure.getTestHeader(), failure.getException(), });
        }
    }