public void deleteVariableInstance(String name) {
if (variableInstances!=null) {
VariableInstance variableInstance = (VariableInstance) variableInstances.remove(name);
if (variableInstance!=null) {
getToken().addLog(new VariableDeleteLog(variableInstance));
variableInstance.removeReferences();
}
}
}