code:     private String getState(ServletRequest request) {
          if (request.getParameter(FederationConstants.PARAM_CONTEXT) != null) {
              return request.getParameter(FederationConstants.PARAM_CONTEXT);
          } else if (request.getParameter(SAMLSSOConstants.RELAY_STATE) != null) {
              return request.getParameter(SAMLSSOConstants.RELAY_STATE);
          }
          
          return null;
      }
      
      @Override
  