public void init(PortletConfig config) throws PortletException { super.init(config); context = getPortletContext(); sso = (SSOManager) context.getAttribute("cps:SSO"); if (null == sso) { throw new PortletException("Failed to find SSO Manager on portlet initialization"); } userManager = (UserManager) context.getAttribute(CommonPortletServices.CPS_USER_MANAGER_COMPONENT); if (null == userManager) { throw new PortletException("Failed to find the User Manager on portlet initialization"); } ssoTypesList = new LinkedList<String>(); for (String s : SSO_TYPES) ssoTypesList.add(s); }