public static World bestInferenceCache(Context context) {
    if (Logic.$JUST_IN_TIME_FORWARD_INFERENCEp$) {
      return (Logic.getInferenceCache(context, Logic.KWD_JUST_IN_TIME));
    }
    { World cache = Logic.lookupInferenceCache(context, Logic.KWD_TMS);

      if (cache != null) {
        return (cache);
      }
      else {
        return (Logic.lookupInferenceCache(context, Logic.KWD_META));
      }
    }
  }