}
this.entries = entries.toArray(new LdapStructureEntry[entries.size()]);
}
private void restoreSearchParams(Persistor root) {
LdapSearchParametersPersistor loader = new LdapSearchParametersPersistor();
Map<NumericOid, LdapSearchParameters> searchParams = Maps.newHashMap();
for (Persistor p : root.getChildren("SearchParams")) {
NumericOid oid = new NumericOid(p.getString("oid"));
Persistor data = p.getFirstChild("Data");
searchParams.put(oid, loader.restoreFrom(data));
}
this.searchParams = new HashMap<NumericOid, LdapSearchParameters>(searchParams);
}