public Element getVCard(Map<String, String> map) {
            Document document = (Document) template.getDocument().clone();
            Element element = document.getRootElement();
            return treeWalk(element, map);
        }
vCard class that converts vcard data using a template.
xmppserver/src/main/java/org/jivesoftware/openfire/ldap/LdapVCardProvider.java