SpoutPlayer player = SpoutManager.getPlayerFromId(playerId);
if (player != null) {
if (widgets.containsKey(widget)) {
widgets.remove(widget);
if (!widget.getType().isServerOnly()) {
SpoutManager.getPlayerFromId(playerId).sendImmediatePacket(new PacketWidgetRemove(widget, getId()));
}
widget.setScreen(null);
}
}
return this;