void (Map<Object, Object> args) { final Object toThrow = args.get(THROWS); if (toThrow instanceof List) { final ArrayList<String> list = new ArrayList<String>(); args.put(THROWS, list); } else if (toThrow != null) { args.put(THROWS, Collections.singleton(toThrow)); } myMethods.add(args); }