return Hint.class.isAssignableFrom(candidate);
}
public void validate(Object obj, Errors errors) {
Hint hint=(Hint)obj;
//checking if all answer contents were filled
List questionList=hint.getQuestions();
for (int i = 0; i < questionList.size(); i++) {
Question question = (Question) questionList.get(i);
if(question.getQuestionId().equals(new Long(-1))){
errors.rejectValue("questions["+i+"]", "hint.noQuestion");
}