@DefaultValue(SpotlightConfiguration.DEFAULT_TYPES) @QueryParam("types") String resourceTypesString,
@DefaultValue("250") @FormParam("n") int nHits) {
try {
List<OntologyType> ontologyTypes = Factory.ontologyType().fromCSVString(resourceTypesString);
return ok(asXML(new Text(textString), nHits, ontologyTypes));
//return ok(asXML(new Text(text), nHits));
} catch (Exception e) {
e.printStackTrace();
throw new WebApplicationException(Response.status(Response.Status.BAD_REQUEST). entity(ServerUtils.print(e)).type(MediaType.APPLICATION_XML).build());
}