Log4j2.properties scripts and JavaScript error version > 8.0

From version 8.0.0 JavaScript in log4j2.properties rise error.

So i tryed find any script to filter logs with enabled pipeline splitting (pipeline.separate_logs: true), but dont found any replacement for code (worked before version 8.0.0):

appender.json_rolling.avoid_pipelined_filter.type = ScriptFilter
appender.json_rolling.avoid_pipelined_filter.script.type = Script
appender.json_rolling.avoid_pipelined_filter.script.name = filter_no_pipelined
appender.json_rolling.avoid_pipelined_filter.script.language = JavaScript
appender.json_rolling.avoid_pipelined_filter.script.scriptText = ${sys:ls.pipeline.separate_logs} == false || !(logEvent.getContextData().containsKey("pipeline.id"))

appender.routing.routes.script.type = Script
appender.routing.routes.script.name = routing_script
appender.routing.routes.script.language = JavaScript
appender.routing.routes.script.scriptText = logEvent.getContextData().containsKey("pipeline.id") ? logEvent.getContextData().getValue("pipeline.id") : "sink";

Did anybody knows how i can replace script to separate pipelines in logstash without JavaScript?