if(script != null) {
//get the instanceMap so we can locate the JavaFX Property, if it exists.
Map<String, Property> instanceMap = propertyMap.get(script);
if(instanceMap != null) {
String variable = change.getKey();
Property property = instanceMap.get(variable);
if(property != null) {
// we have a property installed for ths variable,
// so set it's value from the script variable.
property.setValue(map.get(variable));
}
}
}
}