code: public void addSpace(String spaceID, Map<String, AclType> userACLs, String storeID)
          throws ResourceException, InvalidIdException {
          IdUtil.validateSpaceId(spaceID);
  
          try {
              StorageProvider storage = storageProviderFactory.getStorageProvider(storeID);
              storage.createSpace(spaceID);
  
              waitForSpaceCreation(storage, spaceID);
              updateSpaceACLs(spaceID, userACLs, storeID);
          } catch (NotFoundException e) {
              throw new InvalidIdException(e.getMessage());
          } catch (Exception e) {
              storageProviderFactory.expireStorageProvider(storeID);
              throw new ResourceException("add space", spaceID, e);
          }
      }
docs: Adds a space.
  
  @param spaceID
  @param storeID