Presentation p = null;
if(view != null) {
if(view.equals("xml")) {
response.setContentType("application/xml");
p = new XmlPresentation();
}else if(view.equals("jsonparanoid")) {
// response.setContentType("text/javascript");
p = new JsonParanoidPresentation();
}
}