code: private void updateLocalStore(final Context context, final JSONObject event, final int type) {
          if (type == Constants.RAISED_EVENT) {
              getLocalDataStore().persistEvent(context, event, type);
          }
      }
docs: only call async