String optionalCreateNamedWindowName,
String optionalContextName)
{
// Allocate the statement's schedule bucket which stays constant over it's lifetime.
// The bucket allows callbacks for the same time to be ordered (within and across statements) and thus deterministic.
ScheduleBucket scheduleBucket = engineServices.getSchedulingMgmtService().allocateBucket();
// Create a lock for the statement
StatementAgentInstanceLock defaultStatementAgentInstanceLock;
// For on-delete statements, use the create-named-window statement lock