Modifying allExceptions data structure to java.util.LinkedHashMap