if (!isActive()) {
log("Element change event in removed node: ignoring.");
return;
}
StateMap oldState = StateMap.create();
oldState.copyFrom(state);
final StateMap oldPrefs = StateMap.create();
oldPrefs.copyFrom(userPrefs);
processChange(node);
if (!state.compare(oldState)) {
gadgetStateSubmitter.submit();