// data elements returned from the server, and the UI thread that sets the data elements
// that have been scanned from the script.
private final Object lock;
public ScriptDataElementsModel() {
dataElements = newProperty(DATA_ELEMENTS, new DataElementMap());
dataElements.setAllowsNull(false);
lock = new Object();
}