if (val instanceof Date)
return new DateLiteral((Date)val);
if (val instanceof Object)
return new ObjectLiteral(val);
throw new InvalidTypeException("Parameter " + this.getParamName()
+ " assigned an unsupported type " + val.getClass().getSimpleName());
}