@Override
public void received(Connection connection, Object object) {
if (object instanceof RequestDelete) {
documentClosed((RequestDelete) object);
} else if (object instanceof RequestIdsServer) {
client.sendTCP(new ReplyIdsClient(this.manager.getIds()));
} else if (object instanceof ReplyCampaignServer) {
if (!manager.isInitialized()) {
initCampaign((ReplyCampaignServer) object);
}
}