while(tableEntrySet.hasNext()) {
Map.Entry entry = (Map.Entry)tableEntrySet.next();
List markupElSmooksResourceConfigurations = (List)entry.getValue();
SmooksResourceConfiguration[] resourceConfigs = (SmooksResourceConfiguration[])markupElSmooksResourceConfigurations.toArray(new SmooksResourceConfiguration[markupElSmooksResourceConfigurations.size()]);
SmooksResourceConfigurationSortComparator sortComparator = new SmooksResourceConfigurationSortComparator(profileSet);
Arrays.sort(resourceConfigs, sortComparator);
entry.setValue(new Vector(Arrays.asList(resourceConfigs)));
}
}