question: public void validate ( ) throws AMConsoleException { if ( isSelected ( ) ) { if ( isPersonalQuestion ( ) ) { if ( ( question . length ( ) == 0 ) || ( answer . length ( ) == 0 ) ) { throw new AMConsoleException ( "user.password.reset.missing.personal.question.answer.message" ) ; } } else { if ( answer . length ( ) == 0 ) { throw new AMConsoleException ( "user.password.reset.missing.answer.message" ) ; } } } }
target:  Validates data for correctness. e.g. selected question need to have an answer.