code: private synchronized String createDelimitedList(String preferred) {
  		StringBuffer listBuf = new StringBuffer();
  		int prefIndex = order.indexOf(preferred);
  		// remove preferred and add it back at the end to ensure it is not
  		// duplicated in the list returned
  		if (prefIndex != -1) {
  			listBuf.append(preferred);
  		}
  
  		for (int i = 0; i < order.size(); i++) {
  			if (prefIndex == i) {
  				continue;
  			}
  			listBuf.append("," + (String) order.elementAt(i));
  		}
  
  		if (prefIndex == -1 && listBuf.length() > 0) {
  			return listBuf.toString().substring(1);
  		}
  		return listBuf.toString();
  	}
docs: Create a delimited list of supported components.
  
  @param preferred
  @return a comma delimited list