private List<ILdapSearchEntry> toSearchEntry(List<SearchResultEntry> result) {
        List<ILdapSearchEntry> ldapSearchEntries = new ArrayList<>(result.size());

        for (SearchResultEntry e : result) {
            ldapSearchEntries.add(new DefaultLdapSearchEntry(e));
        }
        return ldapSearchEntries;
    }
@author Marc Savy {@literal <msavy@redhat.com>}
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/DefaultLdapSearchImpl.java