public static WaveType REMOVE = WBuilder.waveType("REMOVE_PART").items(MODEL);
private static final Logger LOGGER = LoggerFactory.getLogger(DockModel.class);
private static int DOCK_COUNTER = 0;
@Override
protected void initModel() {
<BUG>final WaveChecker waveChecker = wave -> ObjectUtility.equalsOrBothNull(wave.get(DOCK_KEY), object().key());
</BUG>
listen(waveChecker, ADD);
listen(waveChecker, REMOVE);
<BUG>if (ObjectUtility.nullOrEmpty(object().key())) {

object().key(DockModel.class.getSimpleName() + DOCK_COUNTER++);
</BUG>
}

public static WaveType REMOVE = WBuilder.waveType("REMOVE_PART").items(MODEL);
private static final Logger LOGGER = LoggerFactory.getLogger(DockModel.class);
private static int DOCK_COUNTER = 0;
@Override
protected void initModel() {
final WaveChecker waveChecker = wave -> ObjectUtility.equalsOrBothNull(wave.get(DOCK_KEY), object().id());
listen(waveChecker, ADD);
listen(waveChecker, REMOVE);
if (ObjectUtility.nullOrEmpty(object().id())) {
object().id(DockModel.class.getSimpleName() + DOCK_COUNTER++);
}
