builtinTypeDef.put(ExpressionWindowView.OLDEST_TIMESTAMP, Long.class);
builtinTypeDef.put(ExpressionWindowView.NEWEST_TIMESTAMP, Long.class);
builtinTypeDef.put(ExpressionWindowView.EXPIRED_COUNT, Integer.class);
builtinTypeDef.put(ExpressionWindowView.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);