directoryService.setAccessControlEnabled(false);
directoryService.setAllowAnonymousAccess(false);
directoryService.getChangeLog().setEnabled(true);
List<Interceptor> interceptors = directoryService.getInterceptors();
interceptors.add(new KeyDerivationInterceptor());
directoryService.setInterceptors(interceptors);
directoryServiceFactory.init("defaultDS");
PartitionFactory partitionFactory = directoryServiceFactory.getPartitionFactory();
Partition partition = partitionFactory.createPartition("example", "dc=example,dc=com",