data = kml.getDocs(rp);
}
else if (_requestDetails.output.format.equalsIgnoreCase("rss")) { // RSS
mediaType = MediaType.APPLICATION_XML;
RssOutput rss = new RssOutput();
// print out the rss since we know that the response is not null
data = rss.getDocs(rp);
}
else { // Not pleasant after all this just to return an error :(
rp = new ResponsePojo();
rp.setResponse(new ResponseObject("Output Format", false, "Unsupported output.format"));
data = rp.toApi();