private boolean checkInvalidCharacters(final String fieldKey, final String fieldValue, Errors errors) { SimpleErrorCollection errorCollection = new SimpleErrorCollection(); // This is needed due to http://jira.opensymphony.com/browse/WF-476. We should consider removing this // if we upgrade osworkflow to a version that fixes WF-476. WorkflowUtil.checkInvalidCharacters(fieldValue, fieldKey, errorCollection); errors.addErrorCollection(errorCollection); return !errorCollection.hasAnyErrors(); }