code: protected static String toStringForTermedDocument(TermedDocument o) {
  		StringBuilder sb = new StringBuilder();
  		boolean first;
  
  		sb.append("\n* Labels: ");
  		first = true;
  		SortedSet<String> labelKeys = new TreeSet<>(o.getLabels()
  				.keySet());
  		for (String key : labelKeys) {
  			if (first) {
  				first = false;
  			} else {
  				sb.append("; ");
  			}
  			sb.append(toString(o.getLabels().get(key)));
  		}
  
  		sb.append("\n* Descriptions: ");
  		first = true;
  		SortedSet<String> descriptionKeys = new TreeSet<>(o
  				.getDescriptions().keySet());
  		for (String key : descriptionKeys) {
  			if (first) {
  				first = false;
  			} else {
  				sb.append("; ");
  			}
  			sb.append(toString(o.getDescriptions().get(key)));
  		}
  
  		sb.append("\n* Aliases: ");
  		first = true;
  		SortedSet<String> aliasKeys = new TreeSet<>(o.getAliases()
  				.keySet());
  		for (String key : aliasKeys) {
  			for (MonolingualTextValue mtv : o.getAliases().get(key)) {
  				if (first) {
  					first = false;
  				} else {
  					sb.append("; ");
  				}
  				sb.append(toString(mtv));
  			}
  		}
  
  		return sb.toString();
  	}
docs: Returns a human-readable string representation of the given
  {@link TermedDocument}.
  
  @see java.lang.Object#toString()
  @param o
  the object to represent as string
  @return a string representation of the object