private void exposeIdentities() throws CantExposeActorIdentitiesException {

    try {

      final List<CryptoBrokerExposingData> cryptoBrokerExposingDataList = new ArrayList<>();

      for (final CryptoBrokerIdentity identity : listIdentitiesFromCurrentDeviceUser()) {

        if (identity.isPublished()) {
          cryptoBrokerExposingDataList.add(
              new CryptoBrokerExposingData(
                  identity.getPublicKey(), identity.getAlias(), identity.getProfileImage()));
        }
      }

      cryptoBrokerANSManager.exposeIdentities(cryptoBrokerExposingDataList);

    } catch (final CantListCryptoBrokerIdentitiesException e) {

      errorManager.reportUnexpectedPluginException(
          this.getPluginVersionReference(),
          UnexpectedPluginExceptionSeverity.DISABLES_SOME_FUNCTIONALITY_WITHIN_THIS_PLUGIN,
          e);
      throw new CantExposeActorIdentitiesException(
          e, "", "Problem trying to list crypto brokers from current device user.");
    } catch (final CantExposeIdentitiesException e) {

      errorManager.reportUnexpectedPluginException(
          this.getPluginVersionReference(),
          UnexpectedPluginExceptionSeverity.DISABLES_SOME_FUNCTIONALITY_WITHIN_THIS_PLUGIN,
          e);
      throw new CantExposeActorIdentitiesException(e, "", "Problem exposing identities.");
    }
  }
  private void exposeIdentity(final CryptoBrokerIdentity identity)
      throws CantExposeActorIdentityException {

    try {

      cryptoBrokerANSManager.exposeIdentity(
          new CryptoBrokerExposingData(
              identity.getPublicKey(), identity.getAlias(), identity.getProfileImage()));

    } catch (final CantExposeIdentityException e) {

      errorManager.reportUnexpectedPluginException(
          this.getPluginVersionReference(),
          UnexpectedPluginExceptionSeverity.DISABLES_SOME_FUNCTIONALITY_WITHIN_THIS_PLUGIN,
          e);
      throw new CantExposeActorIdentityException(e, "", "Problem exposing identity.");
    }
  }