code: public String getDNForNode(final LdapNode node) {
          if (node instanceof LdapGroup) {
              return String.format(LdapKeys.GROUP_CN_FORMAT, groupIdentifyer, node.get(groupIdentifyer), baseGroupDn);
          } else {
              return String.format(LdapKeys.USER_UID_FORMAT, userIdentifyer, node.get(userIdentifyer), basePeopleDn);
          }
      }
docs: Returns the DN (Distinguished Name) for a Node.
  
  @param node the given Node.
  @return the DN of that Node.