code: public static Comparable<?> convert(String value, String dataType) throws XACMLParsingException {
  
          if (dataType.equalsIgnoreCase(XACML_3_0_DATA_TYPE_STRING)) {
              return value;
          } else if (dataType.equalsIgnoreCase(XACML_3_0_DATA_TYPE_INTEGER)) {
              return new Integer(Integer.parseInt(value));
          } else if (dataType.equalsIgnoreCase(XACML_3_0_DATA_TYPE_DOUBLE)) {
              return new Double(Double.parseDouble(value));
          } else if (dataType.equalsIgnoreCase(XACML_3_0_DATA_TYPE_ANYURI)) {
              return value;
          } else {
              throw new XACMLParsingException("Not supported data type: " + dataType);
          }
      }
docs: };