code: public Partition addPartition(String partitionId, String partitionDn) throws Exception {
          Log.info(c, "addPartition", "entry " + partitionId + " " + partitionDn);
          JdbmPartition partition = new JdbmPartition(this.service.getSchemaManager());
          partition.setId(partitionId);
          partition.setPartitionPath(new File(this.service.getInstanceLayout().getPartitionsDirectory(), partitionId).toURI());
          partition.setSuffixDn(new Dn(partitionDn));
          service.addPartition(partition);
  
          Log.info(c, "addPartition", "exit");
          return partition;
      }
docs: Add a new partition to the server
  
  @param partitionId The partition ID
  @param partitionDn The partition DN
  @return The newly added partition
  @throws Exception If the partition can't be added