RuntimeException (ConcurrentModificationException cme) { RuntimeExceptionWithAttachments ewa = new RuntimeExceptionWithAttachments( "Error while traversing lookup strings of " + element + " of " + element.getClass(), (String)null, new Attachment("threadDump.txt", ThreadDumper.dumpThreadsToString())); ewa.initCause(cme); return ewa; }