@Override
  public AbstractFermatFragment getFermatFragment(WalletRedeemPointFragmentsEnumType fragment)
      throws FragmentNotFoundException {
    if (fragment == null) {
      throw createFragmentNotFoundException(null);
    }

    AbstractFermatFragment currentFragment = null;
    try {

      switch (fragment) {
        case DAP_WALLET_REDEEM_POINT_MAIN_ACTIVITY:
          currentFragment = new RedeemPointMainActivityFragment();
          //                    currentFragment = new RedeemHomeCardFragment();
          // currentFragment = new RedeemHomeHistoryFragment();
          break;
        case DAP_WALLET_REDEEM_POINT_HISTORY_ACTIVITY:
          currentFragment = new RedeemPointHistoryActivityFragment();
          // currentFragment = new RedeemHomeHistoryFragment();
          break;
        case DAP_WALLET_REDEEM_POINT_STADISTICS_ACTIVITY:
          currentFragment = new RedeemPointStadisticsActivityFragment();
          break;
        case DAP_WALLET_REDEEM_POINT_DETAILS_USERS_TAB:
          // currentFragment = new RedeemPointDetailFragment();
          currentFragment = new RedeemPointDetailFragment();
          break;
        case DAP_WALLET_REDEEM_POINT_DETAILS_TRANSACTIONS_TAB:
          // currentFragment = new RedeemPointDetailTransactionsFragment();
          currentFragment = new RedeemPointDetailFragment();
          break;
        case DAP_WALLET_REDEEM_POINT_SETTINGS_MAIN_NETWORK:
          currentFragment = new SettingsMainNetworkFragment();
          break;
        case DAP_WALLET_REDEEM_POINT_ASSET_SETTINGS_ACTIVITY:
          currentFragment = new SettingsFragment();
          break;
        case DAP_WALLET_REDEEM_POINT_ASSET_SETTINGS_NOTIFICATIONS:
          currentFragment = new SettingsNotificationsFragment();
          break;
        case DAP_WALLET_REDEEM_POINT_MAIN_PENDING_TAB_FRAGMENT:
          currentFragment = new RedeemHomeCardFragment();
          break;
        case DAP_WALLET_REDEEM_POINT_MAIN_HISTORY_TAB_FRAGMENT:
          currentFragment = new RedeemHomeHistoryFragment();
          break;
        case DAP_WALLET_REDEEM_POINT_USER_DETAIL_FRAGMENT:
          currentFragment = new RedeemPointDetailFragment();
          break;
        default:
          throw new FragmentNotFoundException(
              "Fragment not found", new Exception(), fragment.getKey(), "Swith failed");
      }
    } catch (Exception e) {
      e.printStackTrace();
    }
    return currentFragment;
  }
 @Override
 public WalletRedeemPointFragmentsEnumType getFermatFragmentEnumType(String key) {
   return WalletRedeemPointFragmentsEnumType.getValue(key);
 }