@Property(name = PROPERTY_TURN) public boolean setTurn(Turn value) { boolean changed = false; if (this.turn != value) { Turn oldValue = this.turn; Player source = this; if (this.turn != null) { this.turn = null; oldValue.setPlayer(null); } this.turn = value; if (value != null) { value.setPlayer(this); } changed = true; } return changed; }