Model model = ModelFactory.createDefaultModel();
Lang lang = RDFLanguages.contentTypeToLang(mediaType.toString());
if (lang == null)
{
Throwable ex = new NoReaderForLangException("Media type not supported");
if (log.isErrorEnabled()) log.error("MediaType {} not supported by Jena", mediaType);
throw new WebApplicationException(ex, Response.Status.INTERNAL_SERVER_ERROR);
}
String syntax = lang.getName();
if (log.isDebugEnabled()) log.debug("Syntax used to read Model: {}", syntax);