SiteAuthenticator siteAuth = Authenticate.getSiteAuth(); int[] groupIDs = siteAuth.getSpecialGroups(c, request);
int[] groupIDs = AuthenticationManager.getSpecialGroups(c, request);
    public static Context obtainContext(HttpServletRequest request)            throws SQLException    {        Context c = (Context) request.getAttribute("dspace.context");        if (c == null)        {            // No context for this request yet            c = new Context();            // See if a user has authentication            Integer userID = (Integer) request.getSession().getAttribute(                    "dspace.current.user.id");            if (userID != null)            {                EPerson e = EPerson.find(c, userID.intValue());                Authenticate.loggedIn(c, request, e);            }            // Set any special groups - invoke the site authenticator            SiteAuthenticator siteAuth = Authenticate.getSiteAuth();            int[] groupIDs = siteAuth.getSpecialGroups(c, request);            for (int i = 0; i < groupIDs.length; i++)            {                c.setSpecialGroup(groupIDs[i]);            }            // Set the session ID            c.setExtraLogInfo("session_id=" + request.getSession().getId());            // Store the context in the request            request.setAttribute("dspace.context", c);        }        return c;    }