private ObjectClassStructure[] getClassStructures(LdapStructure structure, GetMappingStructureCallback callback) {
DefaultClassStructureRetrieverCallback handler = new DefaultClassStructureRetrieverCallback();
ObjectClassStructureRetriever retriever = new ObjectClassStructureRetriever();
LdapStructureServerCache ldapCache = getLdapCache();
retriever.setLdapCache(ldapCache);
retriever.retrieveStructures(structure, handler, true, new DummyWaitService());
ObjectClassStructure[] structs = handler.getStructures();
handler.transferStateTo(callback);
return structs;
}