m_SelectedAttributes = m_CopyCols.getSelection();
for (int i = 0; i < m_SelectedAttributes.length; i++) {
int current = m_SelectedAttributes[i];
// Create a copy of the attribute with a different name
Attribute origAttribute = instanceInfo.attribute(current);
outputFormat.insertAttributeAt((Attribute)origAttribute.copy(),
outputFormat.numAttributes());
outputFormat.renameAttribute(outputFormat.numAttributes() - 1,
"Copy of " + origAttribute.name());
}