private static Map<String, Object> getAttributesFromInlineGroovyScript(final Map<String, Object> attributes, final Matcher matcherInline) { val script = matcherInline.group(1).trim(); val args = CollectionUtils.wrap("attributes", attributes, "logger", LOGGER); val map = ScriptingUtils.executeGroovyScriptEngine(script, args, Map.class); return ObjectUtils.defaultIfNull(map, new HashMap<>()); }