final int agentInstanceId = agentInstanceContext.getAgentInstanceId();
final VariableService variableService = agentInstanceContext.getStatementContext().getVariableService();
agentInstanceContext.getStatementContext().getVariableService().registerCallback(variable, agentInstanceId, this);
agentInstanceContext.addTerminationCallback(new StopCallback() {
public void stop() {
variableService.unregisterCallback(variableName, agentInstanceId, ExpressionViewBase.this);
}
});
}
ScheduleHandleCallback callback = new ScheduleHandleCallback() {