try {  Group MITGroup = Group.findByName(context, "MIT Users");  if( MITGroup != null ) { context.setSpecialGroup( MITGroup.getID() ); } } catch(SQLException e) {  }
    public void startAuthentication(Context context,        HttpServletRequest request,        HttpServletResponse response)        throws ServletException, IOException    {        if (isMITUser(request))        {            try            {                // add the user to the special group "MIT Users"                Group MITGroup = Group.findByName(context, "MIT Users");                if( MITGroup != null )                {                    context.setSpecialGroup( MITGroup.getID() );                }            }            catch(SQLException e)            {                // FIXME: quietly fail if we caught SQLException             }                    // Try and get a certificate by default            response.sendRedirect(response.encodeRedirectURL(                request.getContextPath() + "/certificate-login"));        }        else        {            // Present the username/password screen (with cert option)            response.sendRedirect(response.encodeRedirectURL(                request.getContextPath() + "/password-login"));        }    }