code: public static void appendSerializedAttributes(final StringBuffer buf,
                                                    final String prefix,
                                                    final Properties attributeProperties)
      {
          if (attributeProperties != null)
          {
              final Enumeration keys = attributeProperties.keys();
              while (keys.hasMoreElements())
              {
                  final String key = (String) keys.nextElement();
                  final String value = attributeProperties.getProperty( key );
                  if (prefix != null)
                  {
                      buf.append(prefix);
                  }
                  buf.append("<attribute attribute-name=\"").append(key);
                  buf.append("\" attribute-value=\"" ).append(value);
                  buf.append("\"/>");
                  buf.append(XML_EOL);
              }
          }
      }
docs: Appends an XML-string with serialized configuration attributes to the specified buffer.
  Used when serializing {@link org.apache.ojb.broker.metadata.AttributeContainer} attributes.
  @param buf the string buffer to append to
  @param prefix the line prefix (ie indent) or null for no prefix
  @param attributeProperties the properties object holding attributes to be serialized
  (null-safe)