code: @Override
      public StorageProviderCredentials getStorageProviderCredentials(String subdomain, String storeId)
          throws AccountCredentialsNotFoundException, StorageProviderCredentialsNotFoundException {
  
          AccountInfo account = accountRepo.findBySubdomain(subdomain);
          Long id = Long.valueOf(storeId);
          if (account == null) {
              throw new AccountCredentialsNotFoundException("no account found for subdomain " + subdomain);
          } else {
              StorageProviderAccount provider = account.getPrimaryStorageProviderAccount();
              if (provider.getId().equals(id)) {
                  return createStorageProviderCredentials(storeId, provider, true);
              } else {
                  for (StorageProviderAccount sp : account.getSecondaryStorageProviderAccounts()) {
                      if (sp.getId().equals(id)) {
                          return createStorageProviderCredentials(storeId, sp, false);
                      }
                  }
              }
          }
  
          throw new StorageProviderCredentialsNotFoundException(
              "No storage provider on subdomain " + subdomain
              + " with storeId " + storeId + " found.");
      }
docs: /*
  (non-Javadoc)
  
  @see
  org.duracloud.mill.credentials.CredentialRepo#getStorageProviderCredentials
  (java.lang.String, java.lang.String)