public void getEntities(Entity parent, Filter filter, EntitySearchResultHandler handler) throws SecurityException
{
ClassLoader currentClassLoader = Thread.currentThread().getContextClassLoader();
DistinguishedName parentDN = getRelativeDN(parent.getInternalId());
if (configuration.getSearchDN().size() == 0 || parentDN.startsWith(configuration.getSearchDN()))
{
String sf = createSearchFilter(filter);
SearchControls sc = getSearchControls(SearchControls.ONELEVEL_SCOPE, true, configuration.getEntityAttributeNames());
handler.setEntityFactory(getEntityFactory());
PagedSearchExecutor pse = new PagedSearchExecutor(parentDN, sf, sc, handler, searchPageSize);