if (st.getAttribute().equalsIgnoreCase("object.currentRepresentation")) {
if (obj.getCurrentRepresentationIndex() != Integer.parseInt(st.getValue())) {
obj.setCurrentRepresentation(Integer.parseInt(st.getValue()));
}
} else if (st.getAttribute().startsWith("object.behavior")) {
Behavior bh = obj.getBehavior(st.getAttribute().split("object.behavior.")[1]);
if (bh instanceof BooleanBehavior) {
boolean bl = Boolean.parseBoolean(st.getValue());
if (bl != ((BooleanBehavior) bh).getValue()) {
((BooleanBehavior) bh).setValue(bl);
//Window.alert(obj.toString());