checkState(state instanceof TorrentState, "state is not a TorrentState but a %s!", state.getClass());
TorrentState torrentState = (TorrentState) state;
checkState(state instanceof TorrentState, "state is not a TorrentState but a %s!", state.getClass());
TorrentState torrentState = (TorrentState) state;