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: ~ specific language governing permissions and limitations
  ~ under the License.
  -->
  <%@page import="org.apache.axis2.context.ConfigurationContext"%>
  <%@ page import="org.apache.commons.lang.StringUtils" %>
  <%@ page import="org.wso2.carbon.CarbonConstants" %>
  <%@ page import="org.wso2.carbon.identity.sso.saml.stub.types.SAMLSSOServiceProviderDTO" %>
  
negative.code:         client = new SAMLSSOConfigServiceClient(cookie, backendServerURL, configContext);
  
          serviceProviderDTO = new SAMLSSOServiceProviderDTO();
          boolean isEditingSP = false;
          if ("editServiceProvider".equals(SAMLSSOUIUtil.getSafeInput(request, "SPAction"))) {
              isEditingSP = true;
              serviceProviderDTO.setIssuer(SAMLSSOUIUtil.getSafeInput(request, "hiddenIssuer"));
  