Element () { Element state = new Element("state"); synchronized (myActiveTargetLock) { if (mySavedActiveTargetId != null && !mySavedActiveTargetId.equals(DefaultExecutionTarget.INSTANCE.getId())) { state.setAttribute("SELECTED_TARGET", mySavedActiveTargetId); } } return state; }