private void createIndex(InitialLdapContext ctx) throws OpenDsException
{
ManagementContext mCtx = LDAPManagementContext.createFromContext(
JNDIDirContextAdaptor.adapt(ctx));
RootCfgClient root = mCtx.getRootConfiguration();
LocalDBBackendCfgClient backend =
(LocalDBBackendCfgClient)root.getBackend(backendName.getText());
LocalDBVLVIndexCfgDefn provider = LocalDBVLVIndexCfgDefn.getInstance();
LocalDBVLVIndexCfgClient index =
backend.createLocalDBVLVIndex(provider, name.getText(), null);
index.setFilter(filter.getText().trim());
index.setSortOrder(getSortOrderStringValue(getSortOrder()));
index.setBaseDN(DN.decode(getBaseDN()));
index.setScope(getScope());