@Override public void validate(PropertyReference expr) throws InvalidExpressionException { if (expr.size() != 1 || !getData().containsKey(expr.getRoot())) { throw new InvalidExpressionException( "No property on $Locale for key: " + expr, expr.getLocation()); } }
@Override public Object getValue(PropertyReference expr) { return getData().get(expr.getRoot()); }