builtinTypeDef.put(ExpressionViewUtil.OLDEST_TIMESTAMP, Long.class);
builtinTypeDef.put(ExpressionViewUtil.NEWEST_TIMESTAMP, Long.class);
builtinTypeDef.put(ExpressionViewUtil.EXPIRED_COUNT, Integer.class);
builtinTypeDef.put(ExpressionViewUtil.VIEW_REFERENCE, Object.class);
EventType builtinMapType = statementContext.getEventAdapterService().createAnonymousMapType(statementContext.getStatementId() + "_exprview", builtinTypeDef);
builtinMapBean = new MapEventBean(new HashMap<String, Object>(), builtinMapType);
StreamTypeService streamTypeService = new StreamTypeServiceImpl(new EventType[] {eventType, builtinMapType}, new String[2], new boolean[2], statementContext.getEngineURI(), false);
// validate expression
expiryExpression = ViewFactorySupport.validateExpr(statementContext, expiryExpression, streamTypeService, 0);