private void authenticate(HttpServletRequest request, final String username)
throws ServletException, IOException, LoginException
{
Identity identity = Identity.instance();
identity.getCredentials().setUsername(username);
identity.authenticate();
}
private String[] split(String toSplit, String delimiter)
{
if (delimiter.length() != 1)