code: public static CharSequence toParameterValue(final Object value) {
          if (value instanceof Long) {
              return toParameterValue((Long) value);
          } else if (value instanceof Integer) {
              return toParameterValue((Integer) value);
          } else if (value instanceof Boolean) {
              return toParameterValue((Boolean) value);
          } else if (value instanceof Float) {
              return toParameterValue((Float) value);
          } else if (value instanceof JavaScriptInlineFunction) {
              return toParameterValue((JavaScriptInlineFunction) value);
          } else if (value instanceof Duration) {
              return String.valueOf(((Duration) value).getMilliseconds());
          } else if (value instanceof Attr.MarkupId) {
              return ((Attr.MarkupId)value).quoted().toString();
          } else if (value instanceof Attr) {
              return value.toString();
          } else if (value instanceof JsonNode) {
              return Json.stringify(value);
          } else if (value instanceof Config) {
              return ((Config)value).toJsonString();
          }
  
          return value != null ? "'" + String.valueOf(value) + "'" : Attr.nullValue();
      }
docs: transform given value to a javascript parameter value
  
  @param value The value to transform
  @return value as string