* @return A value from the given {@link Expression} or an empty string if the given {@link
* Expression} and the {@link LiteralType} do not match
*/
String literal(org.eclipse.persistence.jpa.jpql.parser.Expression expression, LiteralType type) {
LiteralVisitor visitor = literalVisitor();
try {
visitor.setType(type);
expression.accept(visitor);
// Make sure the identification variable is capitalized and unique since
// String.equals() is used rather than String.equalsIgnoreCase()
if (visitor.literal != ExpressionTools.EMPTY_STRING &&