private Partition addPartition(String partitionId,String partitionDn) throws Exception {
  JdbmPartition partition=new JdbmPartition();
  partition.setId(partitionId);
  partition.setPartitionDir(new File(service.getWorkingDirectory(),partitionId));
  partition.setSuffix(partitionDn);
  service.addPartition(partition);
  return partition;
}

private Partition addPartition ( String partitionId , String partitionDn ) throws Exception { JdbmPartition partition = new JdbmPartition ( ) ; partition . setId ( partitionId ) ; partition . setPartitionDir ( new File ( service . getWorkingDirectory ( ) , partitionId ) ) ; partition . setSuffix ( partitionDn ) ; service . addPartition ( partition ) ; return partition ; }
add a new partition to the server
