LdifEntry ldifEntry = itr.next();
contextEntry = new DefaultEntry( schemaManager, ldifEntry.getEntry() );
AvlStore store = wrappedPartition.getStore();
if ( suffix.equals( contextEntry.getDn() ) )
{
addMandatoryOpAt( contextEntry );
store.add( contextEntry );
}
else
{
throw new LdapException( "The given LDIF file doesn't contain the context entry" );
}
while ( itr.hasNext() )
{
ldifEntry = itr.next();
Entry entry = new DefaultEntry( schemaManager, ldifEntry.getEntry() );
addMandatoryOpAt( entry );
store.add( entry );
}
parser.close();
}