final String workingDirectory = service.getWorkingDirectory().getPath();
ldifPartition.setWorkingDirectory(workingDirectory + "/schema");
// Extract the schema on disk (a brand new one) and load the registries
final File schemaRepository = new File(workingDirectory, "schema");
final SchemaLdifExtractor extractor = new JarSchemaLdifExtractor(new File(workingDirectory), found);
extractor.extractOrCopy(true);
schemaPartition.setWrappedPartition(ldifPartition);
final SchemaLoader loader = new LdifSchemaLoader(schemaRepository);
final SchemaManager schemaManager = new DefaultSchemaManager(loader);