code: public void initialize(List<StorageAccount> accts)
          throws StorageException {
  
          storageAccounts = new HashMap<>();
          for (StorageAccount acct : accts) {
              storageAccounts.put(acct.getId(), acct);
              if (acct.isPrimary()) {
                  primaryStorageProviderId = acct.getId();
              }
          }
  
          // Make sure a primary provider is set
          if (primaryStorageProviderId == null) {
              primaryStorageProviderId = accts.get(0).getId();
          }
      }
docs: Initializes the account manager based on provided accounts
  
  @param accts
  @throws StorageException