class ScriptTaskPropertyReader extends TaskPropertyReader {

    public ScriptTypeValue getScript() {
        return new ScriptTypeValue(
                Scripts.scriptLanguageFromUri(task.getScriptFormat(), Scripts.LANGUAGE.JAVA.language()),
                Optional.ofNullable(task.getScript()).orElse(null)
        );
    }

    public  ScriptTaskPropertyReader(ScriptTask task, BPMNDiagram diagram, DefinitionResolver definitionResolver);

}