/** Adds one Property's values to the metadata header under contruction. */
 private static void encodeOneProperty(StringBuilder sb, String name, Property property)
     throws RepositoryException {
   ValueImpl value;
   while ((value = (ValueImpl) property.nextValue()) != null) {
     LOGGER.log(Level.FINEST, "PROPERTY: {0} = \"{1}\"", new Object[] {name, value.toString()});
     String valString = value.toFeedXml();
     if (!Strings.isNullOrEmpty(valString)) {
       ServletUtil.percentEncode(sb, name, valString);
       sb.append(',');
     }
   }
 }