* @throws IOException only from Appendable, and that can't really
* happen when using StringBuilder.
*/
private static void wrapOneProperty(StringBuilder buf, String name,
Property property) throws RepositoryException, IOException {
ValueImpl value = null;
while ((value = (ValueImpl) property.nextValue()) != null) {
if (LOGGER.isLoggable(Level.FINEST)) {
LOGGER.finest("PROPERTY: " + name + " = \"" + value.toString() + "\"");
}
String valString = value.toFeedXml();
if (valString != null && valString.length() > 0) {
buf.append("<").append(XML_META);
XmlUtils.xmlAppendAttr(XML_NAME, name, buf);
XmlUtils.xmlAppendAttr(XML_CONTENT, valString, buf);
buf.append("/>\n");