ExtendedContentDescription descriptor) {
Iterator it = tag.getFields();
ContentDescriptor tmp = null;
while (it.hasNext()) {
try {
TagField currentField = (TagField) it.next();
if (!currentField.isCommon()) {
tmp = new ContentDescriptor(currentField.getId(),
ContentDescriptor.TYPE_STRING);
if (currentField.isBinary()) {
tmp.setBinaryValue(currentField.getRawContent());
} else {
tmp.setStringValue(currentField.toString());
}
descriptor.addOrReplace(tmp);
}
} catch (UnsupportedEncodingException uee) {
uee.printStackTrace();