class JsonUtils {

    public Map<String, String> jsonStringToMap(DelegateExecution execution, String entry) {
        logger.debug("Started Json String To Map Method");

        Map<String, String> map = new HashMap<>();

        // Populate Map
        JSONObject obj = new JSONObject(entry);

        /*
         * Wildfly is pushing a version of org.json which does not auto cast to string. Leaving it as an object prevents
         * a method not found exception at runtime.
         */
        final Iterator<String> keys = obj.keys();
        while (keys.hasNext()) {
            final String key = keys.next();
            map.put(key, obj.getString(key));
        }
        logger.debug("Outgoing Map is: {}", map);
        logger.debug("Completed Json String To Map Method");
        return map;
    }

}