public static void assignLabelcodes(LabelcodeConfirmInteraction interaction, List<Folder> list, Set<String> labelCodes,
Set<String> ignored, boolean folderNameIsLabelcode, boolean lookupLabelcodeInNfo) {
for (Folder f : list) {
if (f.findLabelcode() == null) { // no label code for this folder yet => assign
CatalogNumberHibernateImpl lc = null;
// walk bottom up and try to find label code
Folder cur = f;
if (folderNameIsLabelcode) {
while(cur.getParent().getName() != null) { // walk until root
lc = LabelcodeMatcher.findLabelcode(cur.getName());