public Component makeResponseViewComponent(
String wicketId, IModel<ISIResponse> model) {
ISIResponse response = model.getObject();
ISIPrompt prompt = (ISIPrompt) response.getPrompt();
PromptType type = prompt.getType();
if (type == PromptType.SINGLE_SELECT) {
return makeXmlComponentViewer(wicketId, prompt);
}
else {
return makeResponseViewer(wicketId, model);