public static Object tryParse(String value){
  try {
    return parseByDatatypeName(value,UUIDDatatype.NAME);
  }
 catch (  Exception ignored) {
  }
  try {
    return parseByDatatypeName(value,DateTimeDatatype.NAME);
  }
 catch (  ParseException ignored) {
  }
  try {
    return parseByDatatypeName(value,TimeDatatype.NAME);
  }
 catch (  ParseException ignored) {
  }
  try {
    return parseByDatatypeName(value,DateDatatype.NAME);
  }
 catch (  ParseException ignored) {
  }
  try {
    return parseByDatatypeName(value,BigDecimalDatatype.NAME);
  }
 catch (  ParseException ignored) {
  }
  try {
    return parseByDatatypeName(value,DoubleDatatype.NAME);
  }
 catch (  ParseException ignored) {
  }
  try {
    if (value.equalsIgnoreCase("true") || value.equalsIgnoreCase("false")) {
      return parseByDatatypeName(value,BooleanDatatype.NAME);
    }
  }
 catch (  ParseException ignored) {
  }
  return value;
}

public static Object tryParse ( String value ) { try { return parseByDatatypeName ( value , UUIDDatatype . NAME ) ; } catch ( Exception ignored ) { } try { return parseByDatatypeName ( value , DateTimeDatatype . NAME ) ; } catch ( ParseException ignored ) { } try { return parseByDatatypeName ( value , TimeDatatype . NAME ) ; } catch ( ParseException ignored ) { } try { return parseByDatatypeName ( value , DateDatatype . NAME ) ; } catch ( ParseException ignored ) { } try { return parseByDatatypeName ( value , BigDecimalDatatype . NAME ) ; } catch ( ParseException ignored ) { } try { return parseByDatatypeName ( value , DoubleDatatype . NAME ) ; } catch ( ParseException ignored ) { } try { if ( value . equalsIgnoreCase ( "true" ) || value . equalsIgnoreCase ( "false" ) ) { return parseByDatatypeName ( value , BooleanDatatype . NAME ) ; } } catch ( ParseException ignored ) { } return value ; }
tries to parse a string value into some of the available datatypes when no datatype was specified .
