In fact, it should only be:
```java
if (slot == ApplicationPresenter.TYPE_SetMainContent) {
    main.setWidget(content);
} else {
    super.setInSlot(slot, content);
}
```