try {
if (NetworkControl.getInstance().isConnected()) {
final Response obj = NetworkControl.getInstance().receive();
if (obj instanceof Ping) {
Ping ping = (Ping) obj;
cdbc.getSyncUpThread().addObject(new Pong(ping.getValue()));
cdbc.getSyncUpThread().wakeup();
} else if (obj instanceof DataResponse) {
DataResponse dataResponse = (DataResponse) obj;
cdbc.adoptList(dataResponse.getObjects());
}