}
String acceptValue = req.getHeader("Accept");
if (acceptValue != null && acceptValue.contains("application/xrds+xml"))
{
InputStream is = context.getResourceAsStream("/WEB-INF/discovery.xml");
byte[] buffer = new byte[is.available()];
is.read(buffer, 0, is.available());
resp.setContentType("application/xrds+xml");
resp.getOutputStream().write(buffer);
resp.getOutputStream().flush();
return;