private static String getTextForValue ( BencodeTreeModel model, BencodeTreeNode node ) {
		Value<?> value = node.getValue();
		String prefix =
			"<html><b>" + ( node.getParent() == null ? "(Root)" : "[" + node.getIndex() + "]" ) + "</b> => ";
		
		if ( value instanceof IntegerValue ) {
			return prefix + "Int: " + ( (IntegerValue) value ).getValue();
			
		} else if ( value instanceof StringValue ) {
			if ( ( (StringValue) value ).isValidUtf8() ) {
				return prefix + "String: \"" + ( (StringValue) value ).getStringValue() + "\"";
			} else {
				return prefix + "String: &lt;Binary&gt;";
			}
			
		} else if ( value instanceof ListValue ) {
			return prefix + "List (" + ( (ListValue) value ).getSize() + " elements)";
			
		} else if ( value instanceof DictionaryValue ) {
			return prefix + "Dictionary (" + ( (DictionaryValue) value ).getSize() + " elements)";
		}
		
		return "<?>";
	}