this will throw an IllegalArgumentException if no matching enum is found for the given name. Do you need to catch it and issue the warning as you do bellow?