if(retval.length() == 0) retval += getDNField(extractor, next.intValue()); else retval += "," + getDNField(extractor, next.intValue());
dnField = getDNField(extractor, next.intValue()); if (StringUtils.isNotEmpty(dnField)) { if(retval.length() == 0) retval += dnField; else retval += "," + dnField; }
    protected String constructLDAPDN(String dn){      String retval = "";      DNFieldExtractor extractor = new DNFieldExtractor(dn,DNFieldExtractor.TYPE_SUBJECTDN);                   Collection usefields = getUseFieldInLdapDN();      if(usefields instanceof List){        Collections.sort((List) usefields);      }      Iterator iter = usefields.iterator();       while(iter.hasNext()){      	Integer next = (Integer) iter.next();      	if(retval.length() == 0)      	  retval += getDNField(extractor, next.intValue());      	else      	  retval += "," + getDNField(extractor, next.intValue());      }            retval = retval + "," + this.getBaseDN();                  log.debug("LdapPublisher: constructed DN: " + retval );      return retval;	    }