@Override
    public List<ILdapAttribute> getAttributes() {
        if (attributes == null) {
            attributes = new ArrayList<>(elem.getAttributes().size());
            for (Attribute e : elem.getAttributes()) {
                attributes.add(new DefaultLdapAttribute(e));
            }
        }
        return attributes;
    }
@author Marc Savy {@literal <msavy@redhat.com>}
gateway/engine/core/src/main/java/io/apiman/gateway/engine/impl/DefaultLdapSearchEntry.java