code: public void createSpace(String spaceId) {
          log.debug("createSpace(" + spaceId + ")");
          throwIfSpaceExists(spaceId);
  
          Bucket bucket = createBucket(spaceId);
  
          Date created = bucket.getCreationDate();
          if (created == null) {
              created = new Date();
          }
  
          // Empty ACL set for new space (no permissions set)
          Map<String, AclType> spaceACLs = new HashMap<>();
  
          // Add space properties
          Map<String, String> spaceProperties = new HashMap<>();
          spaceProperties.put(PROPERTIES_SPACE_CREATED, formattedDate(created));
  
          try {
              setNewSpaceProperties(spaceId, spaceProperties, spaceACLs);
          } catch (StorageException e) {
              removeSpace(spaceId);
              String err = "Unable to create space due to: " + e.getMessage();
              throw new StorageException(err, e, RETRY);
          }
      }
docs: {@inheritDoc}