private void importLDAPSchemaLdifs() throws FileOperationFailedException, IOException, LDIFException, DirectoryOrFileNotFoundException {
  createLDAPSchemaFiles();
  File schemaFileDirectory=new File(getSchemaFilesDirectory());
  if (!schemaFileDirectory.exists() || CollectionUtils.isEmpty(Arrays.asList(schemaFileDirectory.listFiles()))) {
    throw new DirectoryOrFileNotFoundException("Directory",getSchemaFilesDirectory());
  }
  _inMemoryDSConfig.setSchema(Schema.getSchema(schemaFileDirectory.listFiles()));
}

private void importLDAPSchemaLdifs ( ) throws FileOperationFailedException , IOException , LDIFException , DirectoryOrFileNotFoundException { createLDAPSchemaFiles ( ) ; File schemaFileDirectory = new File ( getSchemaFilesDirectory ( ) ) ; if ( ! schemaFileDirectory . exists ( ) || CollectionUtils . isEmpty ( Arrays . asList ( schemaFileDirectory . listFiles ( ) ) ) ) { throw new DirectoryOrFileNotFoundException ( "Directory" , getSchemaFilesDirectory ( ) ) ; } _inMemoryDSConfig . setSchema ( Schema . getSchema ( schemaFileDirectory . listFiles ( ) ) ) ; }
imports the schema ldif to the in memory ldap server .
