String username = req.getParameter("username");
if (username != null)
{
if (existsUsername(username))
{
res.setContentType("text/xml");
res.setHeader("Cache-Control", "no-cache");
res.getWriter().write("true");
}
} else
{
// If key comes back as a null return a message.
res.setContentType("text/xml");
res.setHeader("Cache-Control", "no-cache");
res.getWriter().write("Username null");
}