You can do Boolean.parseBoolean(state.getAttribute(NEW_ASSIGNMENT_USE_REVIEW_SERVICE)), which I would use if the rest of the code wasn't using this pattern already.