@Override
  public void onBackPressed() {
    Intent dataIntent = new Intent();
    dataIntent.putExtra(SELECT_IC_ARG, inputControlId);

    int resultCode = isValueChanged ? Activity.RESULT_OK : Activity.RESULT_CANCELED;
    setResult(resultCode, dataIntent);

    super.onBackPressed();
  }
  @Override
  protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);

    if (savedInstanceState == null) {
      RepositoryControllerFragment resourcesController =
          RepositoryControllerFragment_.builder()
              .resourceLabel(getString(R.string.search_result_format, query))
              .recursive(true)
              .resourceUri(resourceUri)
              .query(query)
              .build();
      getSupportFragmentManager()
          .beginTransaction()
          .add(R.id.resource_controller, resourcesController)
          .commit();
    }
  }