code: public static JobScheduler getInstance(Context context) {
          if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
              return JobSchedulerLollipopDelegate.getLollipopInstance(context);
          } else {
              return JobSchedulerCompat.getCompatInstance(context);
          }
      }
docs: Get an instance of a the {@link JobScheduler}, which will delegate to the android one in api
  21+ and use a backported version on older apis.
  
  @param context the context
  @return a JobScheduler instance