@Override
public void show(String resourceId,HttpServletRequest request, HttpServletResponse response) throws UnauthorizedAccessException,ResourceNotFoundException, IOException{
IWidgetInstance instance = WidgetInstancesController.findWidgetInstance(request);
if (instance == null) throw new ResourceNotFoundException();
IParticipant[] participants = new SharedContext(instance).getParticipants();
switch (format(request)) {
case XML: returnXml(ParticipantHelper.createXMLParticipantsDocument(participants),response);break;
case JSON: returnJson(ParticipantHelper.createJSONParticipantsDocument(participants),response);break;
default: returnXml(ParticipantHelper.createXMLParticipantsDocument(participants),response);break;
}