@Override
    public void search(final IAsyncResultHandler<List<ILdapSearchEntry>> resultHandler) {
        getResults(searchDn, filter, scope, (IAsyncResult<List<SearchResultEntry>> results) -> {
            if (results.isSuccess()) {
                List<ILdapSearchEntry> searchResults = toSearchEntry(results.getResult());
                resultHandler.handle(AsyncResultImpl.create(searchResults));
            } else {
                resultHandler.handle(AsyncResultImpl.<List<ILdapSearchEntry>>create(results.getError()));
            }
        });
    }
@author Marc Savy {@literal <msavy@redhat.com>}
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/DefaultLdapSearchImpl.java