private void exposeIdentities() throws CantExposeActorIdentitiesException {

    try {

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

      for (final CryptoCustomerIdentity identity : listAllCryptoCustomerFromCurrentDeviceUser()) {

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

      cryptoCustomerANSManager.exposeIdentities(cryptoBrokerExposingDataList);

    } catch (final CantListCryptoCustomerIdentityException 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 CryptoCustomerIdentity identity)
      throws CantExposeActorIdentityException {

    try {

      cryptoCustomerANSManager.exposeIdentity(
          new CryptoCustomerExposingData(
              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.");
    }
  }