Use of CriteriaBuilder.literal()

As stated in this tutorial, CriteriaBuilder.literal() can be used to convert a literal value to expression. This might be useful for the above CriteriaBuilder methods which requires only Expression parameter.