anchor.diff:  
           serviceProviderDTO.setAttributeConsumingServiceIndex(SAMLSSOUIUtil.getSafeInput(request, "attributeConsumingServiceIndex"));
   
  -        if ("true".equals(request.getParameter(SAMLSSOUIConstants.ENABLE_IDP_INIT_SSO))) {
  +        if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_IDP_INIT_SSO))) {
               serviceProviderDTO.setIdPInitSSOEnabled(true);
           }
   
  -        if ("true".equals(request.getParameter(SAMLSSOUIConstants.ENABLE_IDP_INIT_SLO))) {
  +        if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_IDP_INIT_SLO))) {
               serviceProviderDTO.setIdPInitSLOEnabled(true);
               String returnToUrls = SAMLSSOUIUtil.getSafeInput(request, "idpInitSLOReturnToURLs");
  -            if(StringUtils.isNotBlank(returnToUrls)) {
  +            if (StringUtils.isNotBlank(returnToUrls)) {
                   serviceProviderDTO.setIdpInitSLOReturnToURLs(returnToUrls.split(","));
               }
           }
   
  -        if ("true".equals(request.getParameter(SAMLSSOUIConstants.ENABLE_ENC_ASSERTION))) {
  +        if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_ENC_ASSERTION))) {
               serviceProviderDTO.setDoEnableEncryptedAssertion(true);
               serviceProviderDTO.setCertAlias(SAMLSSOUIUtil.getSafeInput(request, "alias"));
           }
   
  -        if("true".equals(request.getParameter(SAMLSSOUIConstants.ENABLE_SIG_VALIDATION))){
  +        if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_SIG_VALIDATION))) {
               serviceProviderDTO.setDoValidateSignatureInRequests(true);
               serviceProviderDTO.setCertAlias(SAMLSSOUIUtil.getSafeInput(request, "alias"));
           }
  
positive.code: 
  
  <%
  	String backendServerURL;
      ConfigurationContext configContext;
      String cookie;
      String user = null;
  
negative.code:             }
          }
  
          if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_RESPONSE_SIGNATURE))) {
              serviceProviderDTO.setDoSignResponse(true);
          }
  
  
          if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_ASSERTION_SIGNATURE))) {
              serviceProviderDTO.setDoSignAssertions(true);
          }
  
          serviceProviderDTO.setNameIDFormat(request.getParameter(SAMLSSOUIConstants.NAME_ID_FORMAT));
  
          if (serviceProviderDTO.getNameIDFormat() != null) {
              serviceProviderDTO.setNameIDFormat(serviceProviderDTO.getNameIDFormat().replace(":", "/"));
          }
  
          if (request.getParameter(SAMLSSOUIConstants.ENABLE_ATTRIBUTE_PROFILE) != null) {
              serviceProviderDTO.setRequestedClaims(samlSsoServuceProviderConfigBean.getSelectedClaimsAttay());
              serviceProviderDTO.setEnableAttributeProfile(true);
  
              if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_DEFAULT_ATTRIBUTE_PROFILE_HIDDEN))) {
                  serviceProviderDTO.setEnableAttributesByDefault(true);
              }
          }
  
          if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_NAME_ID_CLAIM_URI_HIDDEN))) {
              serviceProviderDTO.setNameIdClaimUri(request.getParameter(SAMLSSOUIConstants.NAME_ID_CLAIM));
          }
  
  
          if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_AUDIENCE_RESTRICTION))) {
              serviceProviderDTO.setRequestedAudiences(samlSsoServuceProviderConfigBean.getSelectedAudiencesArray());
          }
  
          if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_RECIPIENTS))) {
              serviceProviderDTO.setRequestedRecipients(samlSsoServuceProviderConfigBean.getSelectedRecipientsArray());
          }
  
          if (request.getParameter(SAMLSSOUIConstants.LOGIN_PAGE_URL) != null && !"null".equals(request.getParameter(SAMLSSOUIConstants.LOGIN_PAGE_URL))) {
              serviceProviderDTO.setLoginPageURL(request.getParameter(SAMLSSOUIConstants.LOGIN_PAGE_URL));
          }
  
          if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_ATTRIBUTE_PROFILE))) {
  
              String claimsCountParameter = SAMLSSOUIUtil.getSafeInput(request, "claimPropertyCounter");
              if (claimsCountParameter != null && !"".equals(claimsCountParameter)) {
                  try {
                      int claimsCount = Integer.parseInt(claimsCountParameter);
                      for (int i = 0; i < claimsCount; i++) {
                          String claim = SAMLSSOUIUtil.getSafeInput(request, "claimPropertyName" + i);
                          if (claim != null && !"".equals(claim) && !"null".equals(claim)) {
                              String[] currentClaims = serviceProviderDTO.getRequestedClaims();
                              boolean isClaimAlreadyAdded = false;
                              for (String currentClaim : currentClaims) {
                                  if (claim.equals(currentClaim)) {
                                      isClaimAlreadyAdded = true;
                                      break;
                                  }
                              }
  
                              if (!isClaimAlreadyAdded) {
                                  serviceProviderDTO.addRequestedClaims(claim);
                              }
                          }
                      }
                  } catch (NumberFormatException e) {
                      throw new RuntimeException("Invalid number", e);
                  }
              }
          }
  
          if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_AUDIENCE_RESTRICTION))) {
  
              String audiencesCountParameter = SAMLSSOUIUtil.getSafeInput(request, "audiencePropertyCounter");
              if (audiencesCountParameter != null && !"".equals(audiencesCountParameter)) {
                  try {
                      int audiencesCount = Integer.parseInt(audiencesCountParameter);
                      for (int i = 0; i < audiencesCount; i++) {
                          String audience = SAMLSSOUIUtil.getSafeInput(request, "audiencePropertyName" + i);
                          if (audience != null && !"".equals(audience) && !"null".equals(audience)) {
                              String[] currentAudiences = serviceProviderDTO.getRequestedAudiences();
                              boolean isAudienceAlreadyAdded = false;
                              for (String currentAudience : currentAudiences) {
                                  if (audience.equals(currentAudience)) {
                                      isAudienceAlreadyAdded = true;
                                      break;
                                  }
                              }
  
                              if (!isAudienceAlreadyAdded) {
                                  serviceProviderDTO.addRequestedAudiences(audience);
                              }
                          }
                      }
                  } catch (NumberFormatException e) {
                      throw new RuntimeException("Invalid number", e);
                  }
              }
          }
  
          if (Boolean.parseBoolean(request.getParameter(SAMLSSOUIConstants.ENABLE_RECIPIENTS))) {
  
              String recipientCountParameter = SAMLSSOUIUtil.getSafeInput(request, "recipientPropertyCounter");
              if (recipientCountParameter != null && !"".equals(recipientCountParameter)) {
  