if(unicodeEnabled) {
headers.put("x-emc-utf8", "true");
}
for (Iterator<MetadataTag> i = tags.iterator(); i.hasNext();) {
MetadataTag tag = i.next();
if (taglist.length() > 0) {
taglist.append(",");
}
taglist.append(unicodeEnabled ? encodeUtf8( tag.getName() ) : tag.getName());
}
if (taglist.length() > 0) {
headers.put("x-emc-tags", taglist.toString());
}