public static ConstantExpression constant(Object value,Class constantType){
  return new ConstantExpression(value,constantType.getName());
}

public static ConstantExpression constant ( Object value , Class constantType ) { return new ConstantExpression ( value , constantType . getName ( ) ) ; }
constant , use when the value is null .
