if (unscaled instanceof Literal) {
processLiteralExpression((Literal) unscaled, defaultUnit);
} else {
// see if we can still optimize
PropertyIsNull test = ff.isNull(unscaled);
Filter simplified = (Filter) test.accept(new SimplifyingFilterVisitor(), null);
if (simplified == Filter.INCLUDE) {
// special case, the expression was nil to start with
this.expression = NilExpression.NIL;
this.uom = defaultUnit;
} else if (simplified instanceof PropertyIsNull) {