} else if (value instanceof UnknownTypeValue) { return value.toString();
    public static String objectToString(Object value) {        if (value instanceof Date) {            SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS");            return "'" + format.format((Date) value) + "'";        } else if (value instanceof Number) {            return value.toString();        } else if (value instanceof String) {            return "'" + value + "'";        } else if (value instanceof Boolean) {            return (new Boolean2IntFieldConversion()).javaToSql(value).toString();        }        throw (new IllegalArgumentException("Invalid Object in QueryValue: "                                            + value));    }