Created abstract class SyncService.
Checking if device is connected to network before synchronization.