public void saveActiveDesignerSurvey() { try { SessionState sessionState = getSessionState(); CollectSurvey survey = getActiveDesignerSurvey(); boolean activeSurveyWork = sessionState.isActiveSurveyWork(); if (activeSurveyWork) { surveyManager.save(survey); } else { throw new IllegalArgumentException("Active designer survey should be a 'work' survey"); } } catch (SurveyStoreException e) { LOG.error("Error updating taxonomy related attributes.", e); } }