Change "new HashMap<String, Object>()" to "new HashMap<>()"