}
final CreateVariableView createView = new CreateVariableView(statementContext.getStatementId(), services.getEventAdapterService(), services.getVariableService(), createDesc.getVariableName(), statementContext.getStatementResultService());
final int variableNum = services.getVariableService().getReader(createDesc.getVariableName()).getVariableNumber();
services.getVariableService().registerCallback(variableNum, createView);
statementContext.getStatementStopService().addSubscriber(new StatementStopCallback() {
public void statementStopped()
{
services.getVariableService().unregisterCallback(variableNum, createView);
}
});