class OfflineQueryController extends AbstractQueryController {

  @Override
  public <T extends ParseObject> Task<List<T>> findAsync(
      ParseQuery.State<T> state,
      ParseUser user,
      Task<Void> cancellationToken) {
    if (state.isFromLocalDatastore()) {
      return offlineStore.findFromPinAsync(state.pinName(), state, user);
    } else {
      return networkController.findAsync(state, user, cancellationToken);
    }
  }

  public  OfflineQueryController(OfflineStore store, ParseQueryController network);

}