@Override
  public void onCreate() {
    super.onCreate();

    WebImageManager webImageManager = WebImageManager.getInstance(this);
    webImageManager.setMemoryCacheEnabled(true);
    webImageManager.setFileCacheEnabled(true);
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    this.setContentView(R.layout.activity_country);

    this.webImageManager = WebImageManager.getInstance(this);

    this.selectedCountry = null;

    this.listFragment =
        (CountryListFragment) this.getSupportFragmentManager().findFragmentById(R.id.list);
    this.detailsFragment = null;

    this.layoutDualPane = this.findViewById(R.id.details) != null;

    if (savedInstanceState != null) {
      Country country = savedInstanceState.getParcelable(CountryActivity.INSTANCE_STATE_COUNTRY);

      if (country != null) {

        if (this.layoutDualPane) {
          this.selectCountry(country);
        } else {
          this.selectedCountry = country;
        }
      }
    }
  }